-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
worker: fix worker name with \0 #59214
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
base: main
Are you sure you want to change the base?
Conversation
00dbad2
to
51aa926
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59214 +/- ##
==========================================
- Coverage 90.06% 90.04% -0.03%
==========================================
Files 645 648 +3
Lines 189130 191044 +1914
Branches 37094 37453 +359
==========================================
+ Hits 170339 172021 +1682
- Misses 11511 11646 +135
- Partials 7280 7377 +97
🚀 New features to boost your workflow:
|
Environment* env, | ||
ThreadId thread_id, | ||
const char* url, | ||
const std::string& name) { |
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.
Why not?
const std::string& name) { | |
std::string_view name) { |
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.
The type of name
parameter has been defined as std::string&
in many functions, so there are quite a few places that need to be modified.
51aa926
to
27bae56
Compare
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 although I'd consider @anonrig's suggestion, std::string_view
is the cleaner replacement for an API that currently takes a const char*
fix worker name with
\0
.make -j4 test
(UNIX), orvcbuild test
(Windows) passes