File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
Tracer ,
7
7
} from "@proto-kit/sequencer" ;
8
8
import { DependencyFactory , OmitKeys } from "@proto-kit/common" ;
9
- import { inject } from "tsyringe" ;
10
9
11
10
import { PrismaStateService } from "./services/prisma/PrismaStateService" ;
12
11
import { PrismaBatchStore } from "./services/prisma/PrismaBatchStore" ;
@@ -40,7 +39,7 @@ export class PrismaDatabaseConnection
40
39
extends SequencerModule < PrismaDatabaseConfig >
41
40
implements DependencyFactory , PrismaConnection
42
41
{
43
- public constructor ( @ inject ( "Tracer" ) private readonly tracer : Tracer ) {
42
+ public constructor ( private readonly tracer : Tracer ) {
44
43
super ( ) ;
45
44
}
46
45
Original file line number Diff line number Diff line change 4
4
StorageDependencyMinimumDependencies ,
5
5
Database ,
6
6
closeable ,
7
+ Tracer ,
7
8
} from "@proto-kit/sequencer" ;
8
9
import { ChildContainerProvider } from "@proto-kit/common" ;
9
10
import { PrismaClient } from "@prisma/client" ;
@@ -20,6 +21,7 @@ import {
20
21
RedisConnectionModule ,
21
22
RedisTransaction ,
22
23
} from "./RedisConnection" ;
24
+ import { inject } from "tsyringe" ;
23
25
24
26
export interface PrismaRedisCombinedConfig {
25
27
prisma : PrismaDatabaseConfig ;
@@ -36,10 +38,10 @@ export class PrismaRedisDatabase
36
38
37
39
public redis : RedisConnectionModule ;
38
40
39
- public constructor ( ) {
41
+ public constructor ( @ inject ( "Tracer" ) tracer : Tracer ) {
40
42
super ( ) ;
41
- this . prisma = new PrismaDatabaseConnection ( ) ;
42
- this . redis = new RedisConnectionModule ( ) ;
43
+ this . prisma = new PrismaDatabaseConnection ( tracer ) ;
44
+ this . redis = new RedisConnectionModule ( tracer ) ;
43
45
}
44
46
45
47
public get prismaClient ( ) : PrismaClient {
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { DependencyFactory } from "@proto-kit/common";
8
8
import isArray from "lodash/isArray" ;
9
9
10
10
import { RedisMerkleTreeStore } from "./services/redis/RedisMerkleTreeStore" ;
11
- import { inject } from "tsyringe" ;
12
11
13
12
export interface RedisConnectionConfig {
14
13
host : string ;
@@ -28,7 +27,7 @@ export class RedisConnectionModule
28
27
extends SequencerModule < RedisConnectionConfig >
29
28
implements DependencyFactory , RedisConnection
30
29
{
31
- public constructor ( @ inject ( "Tracer" ) private readonly tracer : Tracer ) {
30
+ public constructor ( private readonly tracer : Tracer ) {
32
31
super ( ) ;
33
32
}
34
33
You can’t perform that action at this time.
0 commit comments