Skip to content

Commit

Permalink
Disable batching of RPC calls. This was causing Promise (of PromiseKi…
Browse files Browse the repository at this point in the history
…t) instances to be retained unnecessarily when there are many (1000s of) web3 calls
  • Loading branch information
hboon committed Aug 25, 2020
1 parent ae74a86 commit 7e2b991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3swift/Web3/Classes/Web3+Instance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class web3: Web3OptionsInheritable {
self.dispatcher = dispatcher!
}
if requestDispatcher == nil {
self.requestDispatcher = JSONRPCrequestDispatcher(provider: provider, queue: self.queue.underlyingQueue!, policy: .Batch(32))
self.requestDispatcher = JSONRPCrequestDispatcher(provider: provider, queue: self.queue.underlyingQueue!, policy: .NoBatching)
} else {
self.requestDispatcher = requestDispatcher!
}
Expand Down

0 comments on commit 7e2b991

Please sign in to comment.