From 6a35eb1a9d4ca15235a9c8de3e82d351fef802ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=B7=E6=BB=A1?= Date: Fri, 9 Apr 2021 15:52:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsegment=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easymap/segment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easymap/segment.go b/easymap/segment.go index bdacc02..e5a642b 100644 --- a/easymap/segment.go +++ b/easymap/segment.go @@ -25,7 +25,7 @@ func NewSegment(segmentCnt int, withLock bool) (EasyMap, error) { } em.dataTable = make([]EasyMap, segmentCnt) for i := 0; i < segmentCnt; i++ { - em.dataTable[0] = NewNormal(withLock) + em.dataTable[i] = NewNormal(withLock) } return em, nil }