Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
白 鹿
contract-sdk-go
Commits
1182affc
Commit
1182affc
authored
Feb 09, 2023
by
gh lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: cancle clean writemap after new kv iterator
--bug=0
parent
2a230458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sdk/sdk.go
sdk/sdk.go
+2
-2
No files found.
sdk/sdk.go
View file @
1182affc
...
...
@@ -719,7 +719,7 @@ func (s *SDK) newIterator(iteratorFuncName, startKey string, startField string,
}
// reset writeMap
s
.
writeMap
=
make
(
map
[
string
][]
byte
,
MapSize
)
//
s.writeMap = make(map[string][]byte, MapSize)
createKvIteratorReq
:=
&
protogo
.
DockerVMMessage
{
ChainId
:
s
.
chainId
,
...
...
@@ -774,7 +774,7 @@ func (s *SDK) NewHistoryKvIterForKey(key, field string) (KeyHistoryKvIter, error
}
// reset writeMap
s
.
writeMap
=
make
(
map
[
string
][]
byte
,
MapSize
)
//
s.writeMap = make(map[string][]byte, MapSize)
createKeyHistoryKvIterReq
:=
&
protogo
.
DockerVMMessage
{
ChainId
:
s
.
chainId
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment