优化代码

This commit is contained in:
刘祥超
2022-03-12 18:00:22 +08:00
parent 0ece9e0897
commit 8dfeda0d80
3 changed files with 51 additions and 9 deletions

View File

@@ -10,7 +10,8 @@ import (
type Piece struct {
m map[uint64]*Item
maxItems int
locker sync.RWMutex
locker sync.RWMutex
}
func NewPiece(maxItems int) *Piece {