From 00abcab64bb51411f681b5baa266cb328dc42529 Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Tue, 31 Jan 2023 00:03:46 -0500 Subject: [PATCH] syncutil.With -> Conn.withLocked No functional change. --- rpc/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/rpc.go b/rpc/rpc.go index 9a513152..5d63e8a3 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -1509,7 +1509,7 @@ func (c *Conn) handleDisembargo(ctx context.Context, d rpccp.Disembargo, release client capnp.Client ) - syncutil.With(&c.lk, func() { + c.withLocked(func(c *lockedConn) { if tgt.which != rpccp.MessageTarget_Which_promisedAnswer { err = rpcerr.Failed(errors.New("incoming disembargo: sender loopback: target is not a promised answer")) return