Replies: 1 comment
-
Olric func (dm *ClusterDMap) Get(ctx context.Context, key string) (*GetResponse, error) {
cmd := protocol.NewGet(dm.name, key).SetRaw().Command(ctx)
rc, err := dm.clusterClient.smartPick(dm.name, key)
if err != nil {
return nil, err
}
err = rc.Process(ctx, cmd)
if err != nil {
return nil, processProtocolError(err)
}
return dm.makeGetResponse(cmd)
}
It should return |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the return value from DMap.Get() in the event a WithTimeout() ctx is used with the call? Does it return a non-nil error in that case? What is the recommended way to use that call, or olris in general, in a pseudo hard-realtime scenario where the calls like Get() should not hang forever?
Beta Was this translation helpful? Give feedback.
All reactions