update
This commit is contained in:
@@ -131,7 +131,7 @@ func (h *RemoteHost[V]) Ping() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (h *RemoteHost[V]) Get(ctx context.Context, id uint64, grain *V) error {
|
||||
func (h *RemoteHost[V]) Get(ctx context.Context, id uint64, grain any) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
reply, error := h.controlClient.Get(ctx, &messages.GetRequest{Id: id})
|
||||
|
||||
Reference in New Issue
Block a user