Remove redundant select
This commit is contained in:
parent
c67dc7ff1d
commit
8bbd0363e9
|
@ -89,9 +89,7 @@ func main() {
|
||||||
Expiration: int32((*interval) + 300),
|
Expiration: int32((*interval) + 300),
|
||||||
})
|
})
|
||||||
|
|
||||||
select {
|
<-time.After(time.Duration(*interval) * time.Second)
|
||||||
case <-time.After(time.Duration(*interval) * time.Second):
|
|
||||||
}
|
|
||||||
|
|
||||||
// rotate keys. the last key is now encryption key.
|
// rotate keys. the last key is now encryption key.
|
||||||
// generate new key and append it to the last, so that
|
// generate new key and append it to the last, so that
|
||||||
|
|
Loading…
Reference in New Issue