Skip to content

Commit 0f5cb19

Browse files
committed
simpler
1 parent b521bcb commit 0f5cb19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbos/system_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,8 +1646,8 @@ func (s *sysDB) notificationListenerLoop(ctx context.Context) {
16461646
s.logger.Error("Notification listener connection closed. re-acquiring")
16471647
poolConn.Release()
16481648
for {
1649-
if ctx.Err() != nil || strings.Contains(err.Error(), "pool closed") {
1650-
s.logger.Debug("Notification listener exiting (context canceled or pool closed)", "cause", context.Cause(ctx), "error", err)
1649+
if ctx.Err() != nil {
1650+
s.logger.Debug("Notification listener exiting (context canceled)", "cause", context.Cause(ctx), "error", err)
16511651
return
16521652
}
16531653
poolConn, err = acquire(ctx)

0 commit comments

Comments
 (0)