mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-03 23:26:28 +08:00
update
This commit is contained in:
@@ -60,7 +60,7 @@ type Param struct {
|
||||
|
||||
// Pre-allocated param slices to avoid any allocations
|
||||
var paramPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
return make([]Param, 0, 16)
|
||||
},
|
||||
}
|
||||
@@ -85,7 +85,7 @@ type Ctx struct {
|
||||
}
|
||||
|
||||
var ctxPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
return &Ctx{}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user