We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1b3b6c commit 973430fCopy full SHA for 973430f
1 file changed
core/services/gateway/handlers/functions/allowlist/allowlist.go
@@ -343,7 +343,12 @@ func (a *onchainAllowlist) updateAllowedSendersBatch(
343
for _, addr := range allowedSendersBatch {
344
currentAllowedSenderList[addr] = struct{}{}
345
}
346
- a.allowlist.Store(¤tAllowedSenderList)
+
347
+ snapshot := make(map[common.Address]struct{}, len(currentAllowedSenderList))
348
+ for k, v := range currentAllowedSenderList {
349
+ snapshot[k] = v
350
+ }
351
+ a.allowlist.Store(&snapshot)
352
a.lggr.Infow("allowlist updated in batches successfully", "len", len(currentAllowedSenderList))
353
354
// persist each batch to the underalying orm layer
0 commit comments