Skip to content

Commit

Permalink
Close backend
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Nov 9, 2023
1 parent d5f0a19 commit 2d8c65e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"flag"
"fmt"
"log"
"log/slog"
"os"
"sync"
"time"
Expand Down Expand Up @@ -40,9 +41,10 @@ func main() {

mm := newMemMetrics()
ba := getBackend(*b,
// backend.WithLogger(slog.New(&nullHandler{})),
backend.WithLogger(slog.New(&nullHandler{})),
backend.WithMetrics(mm),
)
defer ba.Close()

wo := worker.DefaultWorkerOptions
wo.WorkflowExecutorCacheSize = *cacheSize
Expand Down

0 comments on commit 2d8c65e

Please sign in to comment.