mirror of
https://github.com/soypat/lneto.git
synced 2026-08-10 18:03:43 +00:00
remove backoff assumption from Router
This commit is contained in:
@@ -52,11 +52,8 @@ func run() error {
|
||||
RequestNumHeaderKVCap: numHeaderFields,
|
||||
ResponseHeaderMinBufferSize: bufferSizes,
|
||||
MaxAwaitingConns: 256,
|
||||
Backoff: func(consecutiveBackoffs uint) (sleepOrFlag time.Duration) {
|
||||
return min(time.Second, time.Millisecond*time.Duration(consecutiveBackoffs))
|
||||
},
|
||||
Mux: &mux,
|
||||
Logger: slog.Default(),
|
||||
Mux: &mux,
|
||||
Logger: slog.Default(),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user