1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Rename stream to streamSubprovider

This commit is contained in:
Dan Finlay 2017-05-22 15:41:13 -07:00
parent 39f9ffa18a
commit cbfaa6f56f

View File

@ -34,13 +34,13 @@ function MetamaskInpageProvider (connectionStream) {
const filterSubprovider = new FilterSubprovider() const filterSubprovider = new FilterSubprovider()
engine.addProvider(filterSubprovider) engine.addProvider(filterSubprovider)
const stream = self.stream = new StreamSubprovider() const streamSubprovider = new StreamSubprovider()
engine.addProvider(stream) engine.addProvider(streamSubprovider)
pipe( pipe(
stream, streamSubprovider,
multiStream.createStream('provider'), multiStream.createStream('provider'),
stream, streamSubprovider,
(err) => logStreamDisconnectWarning('MetaMask RpcProvider', err) (err) => logStreamDisconnectWarning('MetaMask RpcProvider', err)
) )