Remove redundant select

This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-24 21:53:15 +09:00
parent c67dc7ff1d
commit 8bbd0363e9

View File

@ -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