Skip to content

Commit

Permalink
lint: fix a few capitalized error-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinkel committed Jul 29, 2022
1 parent f1529d7 commit cfdfd0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions galaxycache.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (universe *Universe) NewGalaxy(name string, cacheBytes int64, getter Backen
panic("nil Getter")
}
if nameErr := isNameValid(name); nameErr != nil {
panic(fmt.Errorf("Invalid galaxy name: %s", nameErr))
panic(fmt.Errorf("invalid galaxy name: %s", nameErr))
}

universe.mu.Lock()
Expand Down Expand Up @@ -438,7 +438,7 @@ func (g *Galaxy) recordRequest(ctx context.Context, h hitLevel, localAuthoritati
func (g *Galaxy) Get(ctx context.Context, key string, dest Codec) error {
ctx, tagErr := tag.New(ctx, tag.Upsert(GalaxyKey, g.name))
if tagErr != nil {
panic(fmt.Errorf("Error tagging context: %s", tagErr))
panic(fmt.Errorf("error tagging context: %s", tagErr))
}

ctx, span := trace.StartSpan(ctx, "galaxycache.(*Galaxy).Get on "+g.name)
Expand Down
2 changes: 1 addition & 1 deletion peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (pp *PeerPicker) shutdown() error {
}
}
if len(errs) > 0 {
return fmt.Errorf("Failed to close: %v", errs)
return fmt.Errorf("failed to close: %v", errs)
}
return nil
}
Expand Down

0 comments on commit cfdfd0f

Please sign in to comment.