From 0bc0f7ec11f8fb6391d6c6fe5eb3e5108dbc7e68 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Sun, 29 Dec 2024 01:47:59 +0100 Subject: [PATCH] Update util.go --- libbeat/statestore/backend/memlog/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libbeat/statestore/backend/memlog/util.go b/libbeat/statestore/backend/memlog/util.go index 7750129e772..ae6ec609dfc 100644 --- a/libbeat/statestore/backend/memlog/util.go +++ b/libbeat/statestore/backend/memlog/util.go @@ -37,7 +37,8 @@ func (c *countWriter) Write(p []byte) (int, error) { return n, err } -//nolint:unused // not true +var _ = isRetryErr + func isRetryErr(err error) bool { return errors.Is(err, syscall.EINTR) || errors.Is(err, syscall.EAGAIN) }