-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[content-service] Implement UsageReportService.DownloadURL #12335
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
Conversation
/hold for dependency |
@@ -32,7 +32,7 @@ const ( | |||
|
|||
var ( | |||
// ErrNotFound is returned when an object is not found | |||
ErrNotFound = xerrors.Errorf("not found") | |||
ErrNotFound = fmt.Errorf("not found") |
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.
Drive-by: xerrors.Errorf
is deperacted
6c144ec
to
85dc4fb
Compare
61b286c
to
66c18fe
Compare
/hold for dependency |
return nil, status.Error(codes.InvalidArgument, "Name is required but got empty.") | ||
} | ||
|
||
logger := log.WithField("name", req.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.
usually we just name the variable log
in cases like this.
logger := log.WithField("name", req.Name). | |
log := log.WithField("name", req.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.
log
is the package name where the logging is implemented. It's a name clash that we shouldn't allow.
66c18fe
to
26e93b8
Compare
dependency landed |
Description
Implements DownloadURL rpc. This is needed to be able to download a usage report form the usage component.
Related Issue(s)
How to test
Release Notes
Documentation
Werft options: