From f9b71dea96bb1f2b9a8049d23e3d7e17ce2243da Mon Sep 17 00:00:00 2001 From: hlccd <56643462+hlccd@users.noreply.github.com> Date: Sun, 26 Dec 2021 17:28:56 +0800 Subject: [PATCH] Update radix.go --- goSTL/data_structure/radix/radix.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/goSTL/data_structure/radix/radix.go b/goSTL/data_structure/radix/radix.go index f92a417..a419b5c 100644 --- a/goSTL/data_structure/radix/radix.go +++ b/goSTL/data_structure/radix/radix.go @@ -270,8 +270,6 @@ func (r *radix) Mate(s string) (m map[string]string, ok bool) { return nil, false } //将s按'/'进行分割,并去掉第一个即去掉"",随后一次按照分层结果进行查找 - r.mutex.Lock() m, ok = r.root.mate(s, 0) - r.mutex.Unlock() return m, ok }