major refactor: sig ch, remove conf settings, jetstream pub, ci

* This is a major refactor and includes general improvements around

- context cancellation
- build settings
- jetstream pub sub
- logging
- docker builds
- conf loading
This commit is contained in:
2023-03-08 14:30:40 +00:00
parent 661e6cf1f1
commit 2bbc05bb45
30 changed files with 688 additions and 489 deletions

View File

@@ -7,6 +7,10 @@ import (
"github.com/alitto/pond"
)
const (
idleTimeout = 1 * time.Second
)
type Opts struct {
Concurrency int
QueueSize int
@@ -18,7 +22,7 @@ func NewPool(ctx context.Context, o Opts) *pond.WorkerPool {
o.Concurrency,
o.QueueSize,
pond.MinWorkers(o.Concurrency),
pond.IdleTimeout(time.Second*1),
pond.IdleTimeout(idleTimeout),
pond.Context(ctx),
)
}