chore: update linter
This commit is contained in:
parent
8cf22207b5
commit
f794f8a294
22 changed files with 344 additions and 321 deletions
|
@ -110,11 +110,7 @@ func (l *Listener) Shutdown(graceTimeout time.Duration) error {
|
|||
}
|
||||
start := time.Now()
|
||||
end := start.Add(graceTimeout)
|
||||
for {
|
||||
if time.Now().After(end) {
|
||||
break
|
||||
}
|
||||
|
||||
for !time.Now().After(end) {
|
||||
l.mu.RLock()
|
||||
if len(l.conns) == 0 {
|
||||
l.mu.RUnlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue