From fdbf54eb04068bb543222647ef47c47da92782c3 Mon Sep 17 00:00:00 2001 From: krhubert Date: Thu, 19 Oct 2023 13:36:21 +0200 Subject: [PATCH] Update docs --- server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index b029421..cc6f418 100644 --- a/server.go +++ b/server.go @@ -103,12 +103,12 @@ type Config struct { // If BaseContext is nil, the default is context.Background(). // If this is defined, then it MUST return a non-nil context BaseContext func() context.Context - + // TaskCheckInterval specifies the interval between checks for new tasks to process when all queues are empty. // - // Be careful not to set this value too low because it adds significant load to redis. + // If unset, zero or a negative value, the interval is set to 1 second. // - // If set to a zero or negative value, NewServer will overwrite the value with default value. + // Note: Setting this value too low may add significant load to redis. // // By default, TaskCheckInterval is set to 1 seconds. TaskCheckInterval time.Duration