mirror of
https://github.com/hlccd/goSTL.git
synced 2025-09-18 11:44:26 +08:00
Update radix.go
This commit is contained in:
@@ -270,8 +270,6 @@ func (r *radix) Mate(s string) (m map[string]string, ok bool) {
|
|||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
//将s按'/'进行分割,并去掉第一个即去掉"",随后一次按照分层结果进行查找
|
//将s按'/'进行分割,并去掉第一个即去掉"",随后一次按照分层结果进行查找
|
||||||
r.mutex.Lock()
|
|
||||||
m, ok = r.root.mate(s, 0)
|
m, ok = r.root.mate(s, 0)
|
||||||
r.mutex.Unlock()
|
|
||||||
return m, ok
|
return m, ok
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user