mirror of
https://github.com/soypat/lneto.git
synced 2026-08-20 06:29:03 +00:00
Stack backoff rework (#83)
* huge Stack backoff rework * lneto bump: huge Stack backoff rework
This commit is contained in:
@@ -5,12 +5,13 @@ import (
|
||||
"net/netip"
|
||||
"time"
|
||||
|
||||
"github.com/soypat/lneto"
|
||||
"github.com/soypat/lneto/tcp"
|
||||
)
|
||||
|
||||
func (s *StackAsync) StackRetrying(loopSleep time.Duration) StackRetrying {
|
||||
func (s *StackAsync) StackRetrying(stackProtoBackoff lneto.BackoffStrategy) StackRetrying {
|
||||
return StackRetrying{
|
||||
block: s.StackBlocking(loopSleep),
|
||||
block: s.StackBlocking(stackProtoBackoff),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user