mirror of
https://github.com/ManyakRus/starter.git
synced 2025-12-07 00:26:47 +02:00
сделал перенёс CONNECTION =
This commit is contained in:
2
vendor/github.com/nats-io/nats.go/timer.go
generated
vendored
2
vendor/github.com/nats-io/nats.go/timer.go
generated
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user