From 4d40f554ecb659de4ea1c9be1b457f0b1bcd8856 Mon Sep 17 00:00:00 2001 From: h3n4l Date: Mon, 8 Nov 2021 23:04:19 +0800 Subject: [PATCH] fixed the comment of Opts.DeadlockTimeout in deadlock.go --- deadlock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deadlock.go b/deadlock.go index 23813a0..83e581d 100644 --- a/deadlock.go +++ b/deadlock.go @@ -21,7 +21,7 @@ var Opts = struct { // Would disable lock order based deadlock detection if DisableLockOrderDetection == true. DisableLockOrderDetection bool // Waiting for a lock for longer than DeadlockTimeout is considered a deadlock. - // Ignored is DeadlockTimeout <= 0. + // Ignored if DeadlockTimeout <= 0. DeadlockTimeout time.Duration // OnPotentialDeadlock is called each time a potential deadlock is detected -- either based on // lock order or on lock wait time.