-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOISSUE - Propagate Context #1842
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1842 +/- ##
==========================================
- Coverage 65.69% 65.68% -0.01%
==========================================
Files 116 116
Lines 9415 9413 -2
==========================================
- Hits 6185 6183 -2
Misses 2572 2572
Partials 658 658
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cmd/users/main.go
Outdated
return err | ||
} | ||
_, err = svc.IssueToken(context.Background(), c.AdminEmail, c.AdminPassword) | ||
_, err = svc.IssueToken(ctx, c.AdminEmail, c.AdminPassword) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Initial Commit: Propagate Context Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Make IssueToken Inline Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com> Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Initial Commit: Propagate Context Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Make IssueToken Inline Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Initial Commit: Propagate Context Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Make IssueToken Inline Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
What does this do?
Propagate context throughout mainflux by trying to use
context.Background
as minimum as possibleWhich issue(s) does this PR fix/relate to?
No issue
List any changes that modify/break current functionality
No changes that modify the functionality of the system
Have you included tests for your changes?
No
Did you document any new/modified functionality?
No
Notes
Should we add context to
readers
andconsumers
?