Skip to content

Commit c21fd83

Browse files
committed
fix
1 parent 7f925de commit c21fd83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bindings/go/evmc/evmc.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ var (
247247
)
248248

249249
func addHostContext(ctx HostContext) uintptr {
250-
id := hostContextCounter.Load()
251-
cnt := hostContextCounter.Add(1)
252-
hostContextCounter.Store(cnt)
250+
id := hostContextCounter.Add(1)
253251
hostContextMap.Store(id, ctx)
254252
return id
255253
}

0 commit comments

Comments
 (0)