mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
ci: update golang and action script version
This commit is contained in:
1 parent
8f661a67a4
commit
997bf09c32
7 files changed
+30
-27
No files matched your search
@@ -18,11 +18,11 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
// use range here to get a copy of index(different k) in each loop.
|
||||
for k := range pools {
|
||||
sizes[k] = 1 << k
|
||||
pools[k].New = func() interface{} {
|
||||
return make([]byte, sizes[k])
|
||||
for i := 0; i < num; i++ {
|
||||
size := 1 << i
|
||||
sizes[i] = size
|
||||
pools[i].New = func() interface{} {
|
||||
return make([]byte, size)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user