Skip to content

Commit

Permalink
chore: add rlock on get operation
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Oct 30, 2024
1 parent 5ab4f24 commit 323a834
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func (p *Plugin) initTemporalClient(phpSdkVersion string, flags map[string]strin
},

Credentials: tclient.NewAPIKeyDynamicCredentials(func(context.Context) (string, error) {
p.mu.RLock()
defer p.mu.RUnlock()

return p.apiKey, nil
}),
}
Expand Down

0 comments on commit 323a834

Please sign in to comment.