Skip to content

Commit

Permalink
GO-3541 Deal with concur via select
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillSto committed May 31, 2024
1 parent 38241bf commit ae5228f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/identity/ownidentity.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ func (s *ownProfileSubscription) fetchGlobalName(ctx context.Context, ns nameser
}

func (s *ownProfileSubscription) updateGlobalName(globalName string) {
if err := s.componentCtx.Err(); err != nil {
log.Error("failed to update global name of our own identity, as component context exceeded")
select {
case <-s.componentCtx.Done():
return
case s.globalNameUpdatedCh <- globalName:
return
}
s.globalNameUpdatedCh <- globalName
}

func (s *ownProfileSubscription) handleGlobalNameUpdate(globalName string) {
Expand Down

0 comments on commit ae5228f

Please sign in to comment.