From 8bbd0363e9732a5794b8619d5895ab4c12367d82 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 May 2022 21:53:15 +0900 Subject: [PATCH] Remove redundant select --- contrib/tlsticketupdate.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/tlsticketupdate.go b/contrib/tlsticketupdate.go index be3b68d5..996e8358 100644 --- a/contrib/tlsticketupdate.go +++ b/contrib/tlsticketupdate.go @@ -89,9 +89,7 @@ func main() { Expiration: int32((*interval) + 300), }) - select { - case <-time.After(time.Duration(*interval) * time.Second): - } + <-time.After(time.Duration(*interval) * time.Second) // rotate keys. the last key is now encryption key. // generate new key and append it to the last, so that