Skip to content

Commit eea56da

Browse files
committed
Update comment
1 parent fe40e45 commit eea56da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

enterprise/coderd/coderd.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ func (api *API) runEntitlementsLoop(ctx context.Context) {
808808
// coderd is shutting down. In this case, post a pubsub message to
809809
// tell other coderd's to resync their entitlements. This is required to
810810
// make sure things like replica counts are updated in the UI.
811+
// Ignore the error, as this is just a best effort. If it fails,
812+
// the system will eventually recover as replicas timeout
813+
// if their heartbeats stop. The best effort just trys to update the
814+
// UI faster if it succeeds.
811815
_ = api.Pubsub.Publish(PubsubEventLicenses, []byte("going away"))
812816
}()
813817
for {

0 commit comments

Comments
 (0)