From 714aac5ba75d757260f4090132003b174a64c93c Mon Sep 17 00:00:00 2001 From: hillium Date: Thu, 18 Apr 2024 11:11:41 +0800 Subject: [PATCH] make clippy happy Signed-off-by: hillium --- br/pkg/streamhelper/flush_subscriber.go | 1 + 1 file changed, 1 insertion(+) diff --git a/br/pkg/streamhelper/flush_subscriber.go b/br/pkg/streamhelper/flush_subscriber.go index 891974ee4d0cf..f1310b0212372 100644 --- a/br/pkg/streamhelper/flush_subscriber.go +++ b/br/pkg/streamhelper/flush_subscriber.go @@ -103,6 +103,7 @@ func (f *FlushSubscriber) UpdateStoreTopology(ctx context.Context) error { func (f *FlushSubscriber) Clear() { timeout := clearSubscriberTimeOut failpoint.Inject("FlushSubscriber.Clear.timeoutMs", func(v failpoint.Value) { + //nolint:durationcheck timeout = time.Duration(v.(int)) * time.Millisecond }) log.Info("Clearing.",