-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
zetaclientIssues related to ZetaClientIssues related to ZetaClient
Description
We use context.Background and context.TODO throughout the code.
This might become a problem if a Go routine need to be canceled when another is canceled, or if ZetaClient is incorporated in another package.
It is also in general proper to determine determine a unified context that is used in the package.
Solution:
- Add a context object
Ctxas a field of the different object:CoreObserver,ZetaCoreBridge,Signer, etc... - Replace
context.Backgroundwith these values - Initialize with
context.Backgroundthe root context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
zetaclientIssues related to ZetaClientIssues related to ZetaClient