Skip to content

Commit

Permalink
Mark remaining function arguments as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNagy committed Feb 20, 2024
1 parent 5e57584 commit bf0da61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/logstreamer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ type logContext struct {
// It will use serverLogger to log locally the same messages, prefixing by the request ID.
// It will use ReportCaller value from localLogger to decide if we print the callstack (first frame outside
// of that package).
func StreamServerInterceptor(localLogger *logrus.Logger) func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
return func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
func StreamServerInterceptor(localLogger *logrus.Logger) func(srv interface{}, ss grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
return func(srv interface{}, ss grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
clientID, withCaller, err := extractMetaFromContext(ss.Context())
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func watchSubDirs(ctx context.Context, fsWatcher *fsnotify.Watcher, path string)
defer decorate.OnError(&err, gotext.Get("can't watch directory and children of %s", path))
log.Debug(ctx, gotext.Get("Watching %s and children", path))

err = filepath.WalkDir(path, func(p string, d os.DirEntry, err error) error {
err = filepath.WalkDir(path, func(p string, _ os.DirEntry, err error) error {
if err != nil {
return err
}
Expand Down

0 comments on commit bf0da61

Please sign in to comment.