Skip to content

Commit 6b9f9c5

Browse files
committed
notifications: do not hog the CPU if there's no L402 token yet
1 parent 7b8ce15 commit 6b9f9c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notifications/manager.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ func (m *Manager) Run(ctx context.Context) error {
179179
log.Errorf("Error getting L402 from "+
180180
"the store: %v", err)
181181
}
182+
183+
// Use a default of 1 second wait time to avoid
184+
// hoggging the CPU.
185+
waitTime = time.Second
182186
continue
183187
}
184188

0 commit comments

Comments
 (0)