Skip to content

Commit

Permalink
Use BroadCast instead
Browse files Browse the repository at this point in the history
Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu committed May 1, 2024
1 parent 6e561b0 commit 99436ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions flyteidl/clients/go/admin/cache/token_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ type TokenCache interface {
// CondWait waits for the condition to be true.
CondWait()

// CondSignal signals the condition.
CondSignal()
// CondBroadcast signals the condition.
CondBroadcast()
}
6 changes: 3 additions & 3 deletions flyteidl/clients/go/admin/cache/token_cache_inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ func (t *TokenCacheInMemoryProvider) CondWait() {
t.cond.Wait()
}

// CondSignal signals the condition.
func (t *TokenCacheInMemoryProvider) CondSignal() {
t.cond.Signal()
// CondBroadcast signals the condition.
func (t *TokenCacheInMemoryProvider) CondBroadcast() {
t.cond.Broadcast()
}

func NewTokenCacheInMemoryProvider() *TokenCacheInMemoryProvider {
Expand Down

0 comments on commit 99436ee

Please sign in to comment.