Skip to content

Commit b521bcb

Browse files
committed
document
1 parent 802d1e7 commit b521bcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dbos/system_database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ func (s *sysDB) shutdown(ctx context.Context, timeout time.Duration) {
342342

343343
if s.launched {
344344
// Wait for the notification loop to exit
345+
// The context should be cancelled prior to calling shutdown
345346
select {
346347
case <-s.notificationLoopDone:
347348
case <-time.After(timeout):

0 commit comments

Comments
 (0)