Skip to content

Commit

Permalink
Close waiter channel instead of sending empty struct to signal update…
Browse files Browse the repository at this point in the history
… of routing table (#540)
  • Loading branch information
DaChartreux authored Oct 25, 2023
1 parent ede36d4 commit 16b4b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo4j/internal/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (r *Router) getOrUpdateTable(ctx context.Context, bookmarksFn func(context.
*unlock = sync.Once{}
// notify all waiters
for _, waiter := range r.updating[database] {
waiter <- struct{}{}
close(waiter)
}
delete(r.updating, database)
return table, err
Expand Down

0 comments on commit 16b4b5f

Please sign in to comment.