1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-12-07 00:26:47 +02:00

сделал перенёс CONNECTION =

This commit is contained in:
Nikitin Aleksandr
2024-01-15 11:19:37 +03:00
parent 8bd64620fd
commit a61997e07a
186 changed files with 15079 additions and 15519 deletions

View File

@@ -29,7 +29,7 @@ type timerPool struct {
// Get returns a timer that completes after the given duration.
func (tp *timerPool) Get(d time.Duration) *time.Timer {
if t, _ := tp.p.Get().(*time.Timer); t != nil {
if t, ok := tp.p.Get().(*time.Timer); ok && t != nil {
t.Reset(d)
return t
}