From 9e3511728759096c472b864e35a81af492200886 Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Sun, 3 Nov 2024 11:44:31 -0500 Subject: [PATCH] Fix reference to renamed variable --- jsonrpc/jsonrpc_connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonrpc/jsonrpc_connection.go b/jsonrpc/jsonrpc_connection.go index cb0df53..f5540f0 100644 --- a/jsonrpc/jsonrpc_connection.go +++ b/jsonrpc/jsonrpc_connection.go @@ -277,7 +277,7 @@ func (c *Connection) SendRequest(ctx context.Context, method string, params json _, active := c.activeOutRequests[id] c.activeOutRequestsMutex.Unlock() if active { - if notif, err := json.Marshal(CancelParams{ID: encodedId}); err != nil { + if notif, err := json.Marshal(CancelParams{ID: encodedID}); err != nil { // should never happen panic("internal error: failed json encoding") } else {