0.2.79 - Slow api fixes
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
||||
"github.com/ponzischeme89/memby/server/internal/adminevents"
|
||||
"github.com/ponzischeme89/memby/server/internal/notify"
|
||||
"github.com/ponzischeme89/memby/server/internal/store"
|
||||
"github.com/ponzischeme89/memby/server/internal/timing"
|
||||
)
|
||||
|
||||
// queueDepth bounds the work waiting to be delivered.
|
||||
@@ -94,7 +95,7 @@ func New(
|
||||
dispatcher := &Dispatcher{
|
||||
store: st, log: log.With("component", "integrations"), events: events,
|
||||
notify: notifier,
|
||||
client: &http.Client{Timeout: requestTimeout},
|
||||
client: timing.Instrument(&http.Client{Timeout: requestTimeout}, timing.StageIntegrations),
|
||||
transports: map[string]Transport{},
|
||||
queue: make(chan job, queueDepth),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user