Skip to content

Commit

Permalink
feat(freecache):
Browse files Browse the repository at this point in the history
change interface{} to any
  • Loading branch information
彭业昌 committed Feb 17, 2023
1 parent 283eb85 commit 18865c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/xfreecache/v2/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func getPool[T any]() *sync.Pool {
}

pool := &sync.Pool{
New: func() interface{} {
New: func() any {
// Make a new one, and throw it back into T
msg = reflect.New(msgType).Interface().(proto.Message)
return msg
Expand Down

0 comments on commit 18865c1

Please sign in to comment.