File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 55import 'reflect-metadata'
66import 'timers'
77import './utils/PatchTsyringe'
8+ import './register'
89
910import { DhtAddress } from '@streamr/dht'
1011import { ProxyDirection , StreamPartDeliveryOptions } from '@streamr/trackerless-network'
Original file line number Diff line number Diff line change 1+ import { container } from 'tsyringe'
2+ import { Resends } from './subscribe/Resends'
3+ import { Tokens } from './tokens'
4+
5+ container . register ( Tokens . Resends , {
6+ useClass : Resends ,
7+ } )
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ import { StreamMessage } from '../protocol/StreamMessage'
1010import { SignatureValidator } from '../signature/SignatureValidator'
1111import { LoggerFactory } from '../utils/LoggerFactory'
1212import { PushPipeline } from '../utils/PushPipeline'
13- import { Resends } from './Resends'
13+ import type { Resends } from './Resends'
1414import { MessagePipelineOptions , createMessagePipeline as _createMessagePipeline } from './messagePipeline'
15+ import { Tokens } from '../tokens'
1516
1617type MessagePipelineFactoryOptions = MarkOptional < Omit < MessagePipelineOptions ,
1718 'resends' |
@@ -37,7 +38,7 @@ export class MessagePipelineFactory {
3738
3839 /* eslint-disable indent */
3940 constructor (
40- @inject ( delay ( ( ) => Resends ) ) resends : Resends ,
41+ @inject ( Tokens . Resends ) resends : Resends ,
4142 streamStorageRegistry : StreamStorageRegistry ,
4243 @inject ( delay ( ( ) => StreamRegistry ) ) streamRegistry : StreamRegistry ,
4344 signatureValidator : SignatureValidator ,
Original file line number Diff line number Diff line change 1+ export const Tokens = {
2+ Resends : Symbol ( 'Resends' )
3+ }
You can’t perform that action at this time.
0 commit comments