A bit of safety
This commit is contained in:
parent
7941b0318e
commit
a9813a91d2
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ func (c *ByClassifier) enroll() {
|
|||
|
||||
func sortMap(unsorted *sync.Map, size int) {
|
||||
|
||||
if size == 0 {
|
||||
size = 1
|
||||
}
|
||||
|
||||
type Myt struct {
|
||||
Name string
|
||||
Num int64
|
||||
|
|
Loading…
Reference in a new issue