Still having an issue: ``` count := 0 for resp, e...
# spicedb
p
Still having an issue:
Copy code
count := 0
for resp, err := readClient.Recv(); ; {
    log.Printf("loop %s   %s\n", resp, err)
    if err != nil && !errors.Is(err, io.EOF) {
        log.Printf("Error in looking up sub damproto/user:%s relation to damproto/group:users : %s \n", sub, err.Error())
        usersRelation = "ERROR"
        break
    }
    if resp != nil && resp.Relationship != nil && resp.Relationship.Relation != "" {
        usersRelation = usersRelation + resp.Relationship.Relation + " "
    }
    count++
    if errors.Is(err, io.EOF) || count > 10 {
        break
    }
}
Outputs
Copy code
2022/12/21 13:10:11 loop read_at:{token:"GhUKEzE2NzE2NTcwMTAwMDAwMDAwMDA="} relationship:{resource:{object_type:"damproto/group" object_id:"users"} relation:"admin" subject:{object:{object_type:"damproto/user" object_id:"2"}}}   %!s(<nil>)
10 times then exits due to my count limit