Skip to content

Commit df81379

Browse files
committed
Gotta be @injectable()
1 parent 137b80e commit df81379

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/sdk/src/subscribe/Resends.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import random from 'lodash/random'
1414
import sample from 'lodash/sample'
1515
import without from 'lodash/without'
16-
import { delay, inject } from 'tsyringe'
16+
import { delay, inject, injectable } from 'tsyringe'
1717
import { ConfigInjectionToken, type StrictStreamrClientConfig } from '../ConfigTypes'
1818
import { StreamrClientError } from '../StreamrClientError'
1919
import { StorageNodeRegistry } from '../contracts/StorageNodeRegistry'
@@ -119,6 +119,7 @@ export const toInternalResendOptions = (options: ResendOptions): InternalResendO
119119
}
120120
}
121121

122+
@injectable()
122123
export class Resends {
123124

124125
private readonly storageNodeRegistry: StorageNodeRegistry

packages/sdk/src/subscribe/Subscriber.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { EthereumAddress, Logger, StreamPartID } from '@streamr/utils'
2-
import { delay, inject } from 'tsyringe'
2+
import { delay, inject, injectable } from 'tsyringe'
33
import { NetworkNodeFacade } from '../NetworkNodeFacade'
44
import { LoggerFactory } from '../utils/LoggerFactory'
55
import { MessagePipelineFactory } from './MessagePipelineFactory'
66
import { Subscription } from './Subscription'
77
import { SubscriptionSession } from './SubscriptionSession'
88

9+
@injectable()
910
export class Subscriber {
1011

1112
private readonly subSessions: Map<StreamPartID, SubscriptionSession> = new Map()

0 commit comments

Comments
 (0)