Skip to content

Commit 2d8c65e

Browse files
committed
Close backend
1 parent d5f0a19 commit 2d8c65e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bench/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"flag"
77
"fmt"
88
"log"
9+
"log/slog"
910
"os"
1011
"sync"
1112
"time"
@@ -40,9 +41,10 @@ func main() {
4041

4142
mm := newMemMetrics()
4243
ba := getBackend(*b,
43-
// backend.WithLogger(slog.New(&nullHandler{})),
44+
backend.WithLogger(slog.New(&nullHandler{})),
4445
backend.WithMetrics(mm),
4546
)
47+
defer ba.Close()
4648

4749
wo := worker.DefaultWorkerOptions
4850
wo.WorkflowExecutorCacheSize = *cacheSize

0 commit comments

Comments
 (0)