Skip to content

Commit 247752e

Browse files
author
Dov Alperin
committed
Chillax errcheck
1 parent 4cc8466 commit 247752e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/start/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func getCurrentConnCount(ctx context.Context, node *flypg.Node) (int, error) {
133133
if err != nil {
134134
return 0, err
135135
}
136-
defer conn.Close(ctx)
136+
defer func() { _ = conn.Close(ctx) }()
137137

138138
var current int
139139
if err := conn.QueryRow(ctx, sql).Scan(&current); err != nil {

0 commit comments

Comments
 (0)