From f1aa0f5c4f8fd004daad7624dbff9f1dd977ad56 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sun, 1 May 2022 15:17:46 -0700 Subject: [PATCH] Fix call to lrpc.ChannelDone --- client/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.go b/client/main.go index 691b7c1..5c879be 100644 --- a/client/main.go +++ b/client/main.go @@ -144,7 +144,7 @@ func (c *Client) Call(ctx context.Context, rcvr, method string, arg interface{}, {Dir: reflect.SelectRecv, Chan: ctxDoneVal, Send: reflect.Value{}}, }) if chosen == 1 { - c.Call(context.Background(), "lrpc", "ChannelDone", id, nil) + c.Call(context.Background(), "lrpc", "ChannelDone", chID, nil) // Close and delete channel c.chMtx.Lock() close(c.chs[chID])