Use any instead of interface{}
Signed-off-by: chenyahui <cyhone@qq.com>
This commit is contained in:
@ -27,7 +27,7 @@ type fakeCompactable struct {
|
||||
}
|
||||
|
||||
func (fc *fakeCompactable) Compact(ctx context.Context, r *pb.CompactionRequest) (*pb.CompactionResponse, error) {
|
||||
fc.Record(testutil.Action{Name: "c", Params: []interface{}{r}})
|
||||
fc.Record(testutil.Action{Name: "c", Params: []any{r}})
|
||||
return &pb.CompactionResponse{}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user