@omnixal/openclaw-nats-plugin 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/nats-config.ts
CHANGED
|
@@ -11,8 +11,7 @@ export function generateNatsConfig(opts: NatsConfigOptions): string {
|
|
|
11
11
|
return `# Auto-generated by @omnixal/openclaw-nats-plugin
|
|
12
12
|
# Do not edit manually — regenerated on setup
|
|
13
13
|
|
|
14
|
-
listen: 127.0.0.1
|
|
15
|
-
port: ${port}
|
|
14
|
+
listen: "127.0.0.1:${port}"
|
|
16
15
|
|
|
17
16
|
jetstream {
|
|
18
17
|
store_dir: "${opts.dataDir}"
|
|
@@ -21,7 +20,7 @@ jetstream {
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
# Monitoring
|
|
24
|
-
http: 127.0.0.1:8222
|
|
23
|
+
http: "127.0.0.1:8222"
|
|
25
24
|
`;
|
|
26
25
|
}
|
|
27
26
|
|
package/package.json
CHANGED
|
@@ -14,8 +14,9 @@ export class DedupService extends BaseService implements OnModuleInit, OnModuleD
|
|
|
14
14
|
this.ttlSeconds = this.config.get('dedup.ttlSeconds');
|
|
15
15
|
const cleanupIntervalMs = this.config.get('dedup.cleanupIntervalMs');
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
this.cleanupTimer = setInterval(() => this.cleanup().catch((e) => {
|
|
18
|
+
this.logger.warn('Dedup cleanup failed', { error: String(e) });
|
|
19
|
+
}), cleanupIntervalMs);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
async onModuleDestroy(): Promise<void> {
|