Skip to content

Commit

Permalink
protocodec: GalaxyGet: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinkel committed May 24, 2023
1 parent 9d1dfca commit bc89cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocodec/galaxywrap_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// GalaxyGet is a simple wrapper around a Galaxy.Get method-call that takes
// care of constructing the protocodec.CodecV2, etc. (making the interface more idomatic for Go)
// care of constructing the protocodec.CodecV2, etc. (making the interface more idiomatic for Go)
func GalaxyGet[C any, T pointerMessage[C]](ctx context.Context, g *galaxycache.Galaxy, key string) (T, error) {
pc := NewV2[C, T]()
getErr := g.Get(ctx, key, &pc)
Expand Down

0 comments on commit bc89cfa

Please sign in to comment.