Skip to content

Commit

Permalink
fix: make it compatible with atomi systems using cache instead of caches
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 16, 2023
1 parent 1e014e7 commit 9bce575
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
platform: nitroso
service: helium
module: pollee
caches:
cache:
live:
autoResubscribe: true
commandTimeout: 3000
Expand Down
2 changes: 1 addition & 1 deletion config/app/lapras.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: lapras
caches:
cache:
live:
endpoints:
0: localhost:6379
Expand Down
2 changes: 1 addition & 1 deletion config/app/pichu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: pichu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
2 changes: 1 addition & 1 deletion config/app/pikachu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: pikachu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
2 changes: 1 addition & 1 deletion config/app/raichu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: raichu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
platform: nitroso
service: helium
module: pollee
caches:
cache:
live:
autoResubscribe: true
commandTimeout: 3000
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/app/lapras.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: lapras
caches:
cache:
live:
endpoints:
0: localhost:6379
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/app/pichu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: pichu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/app/pikachu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: pikachu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/app/raichu.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $schema: ./schema.json

app:
landscape: raichu
caches:
cache:
live:
endpoints:
0: tin-livecache:6379
Expand Down
1 change: 1 addition & 0 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Cli {
) {}

async start(): Promise<void> {
this.logger.info(this.cfg, "Starting CLI");
const a = this.cfg.app;
const tracer = trace.getTracer(`${a.platform}.${a.service}.${a.module}`);
program
Expand Down
2 changes: 1 addition & 1 deletion src/config/root.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export class RootConfig {
each: true,
})
@Type(() => CacheConfig)
caches!: Map<string, CacheConfig>;
cache!: Map<string, CacheConfig>;
}

0 comments on commit 9bce575

Please sign in to comment.