aboutsummaryrefslogtreecommitdiff
path: root/workerpool.go
diff options
context:
space:
mode:
authorGravatar Kirill Danshin <k@guava.by> 2018-08-17 18:12:21 +0300
committerGravatar Kirill Danshin <k@guava.by> 2018-08-17 18:12:21 +0300
commitef10ed05a3797c2a387710e0a6d7dc62abc04290 (patch)
treebcb14825e369e9d7311fbf6e4e78dd77e8e8838c /workerpool.go
parentRevert "Remove CoarseTime" (diff)
downloadfasthttp-ef10ed05a3797c2a387710e0a6d7dc62abc04290.tar.gz
fasthttp-ef10ed05a3797c2a387710e0a6d7dc62abc04290.tar.bz2
fasthttp-ef10ed05a3797c2a387710e0a6d7dc62abc04290.zip
deprecate CoarseTime and replace it with a shortcut implementation
Signed-off-by: Kirill Danshin <k@guava.by>
Diffstat (limited to 'workerpool.go')
-rw-r--r--workerpool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/workerpool.go b/workerpool.go
index cf602e0..081ac65 100644
--- a/workerpool.go
+++ b/workerpool.go
@@ -187,7 +187,7 @@ func (wp *workerPool) getCh() *workerChan {
}
func (wp *workerPool) release(ch *workerChan) bool {
- ch.lastUseTime = CoarseTimeNow()
+ ch.lastUseTime = time.Now()
wp.lock.Lock()
if wp.mustStop {
wp.lock.Unlock()