Skip to content

Commit

Permalink
syncutil.With -> Conn.withLocked
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
zenhack committed Jan 31, 2023
1 parent c095801 commit 00abcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00abcab

Please sign in to comment.