Skip to content

Commit 0b5ac00

Browse files
committed
fix logging nil error
1 parent ea91862 commit 0b5ac00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

leader/leader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (e *elector) tryAdvisoryLock(ctx context.Context, lockKey uint32) (*sql.Tx,
5050

5151
if !hasLock {
5252
tx.Rollback()
53-
e.log.Errorf("failed to acquire advisory lock: %v", err)
53+
e.log.Errorf("failed to acquire advisory lock")
5454
return nil, false
5555
}
5656
return tx, true

0 commit comments

Comments
 (0)