0.2.78
This commit is contained in:
@@ -19,6 +19,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ponzischeme89/memby/server/internal/runtimestats"
|
||||
|
||||
"github.com/ponzischeme89/memby/server/internal/adminevents"
|
||||
"github.com/ponzischeme89/memby/server/internal/notify"
|
||||
"github.com/ponzischeme89/memby/server/internal/store"
|
||||
@@ -108,7 +110,9 @@ func (d *Dispatcher) register(transport Transport) {
|
||||
// of events a minute, and serialising them means a destination cannot be hit with four
|
||||
// concurrent posts by a burst.
|
||||
func (d *Dispatcher) Start(ctx context.Context) {
|
||||
go func() {
|
||||
// Named rather than launched bare, so the console can say this worker is running
|
||||
// without having to infer it from a stack. See internal/runtimestats.
|
||||
runtimestats.Go("Integrations dispatcher", "Integrations", func() {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
@@ -126,7 +130,7 @@ func (d *Dispatcher) Start(ctx context.Context) {
|
||||
d.deliver(ctx, work)
|
||||
}
|
||||
}
|
||||
}()
|
||||
})
|
||||
}
|
||||
|
||||
// DeliverAdminEvent implements adminevents.Sink. It only enqueues: the bus calls this
|
||||
|
||||
Reference in New Issue
Block a user