0.2.79 - Slow api fixes

This commit is contained in:
ponzischeme89
2026-08-19 18:08:00 +12:00
parent 590e069366
commit 0782545013
41 changed files with 1820 additions and 317 deletions
+2 -1
View File
@@ -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),
}