From 0957c59b6092ac81db1945064f077075d81ed3e5 Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Wed, 10 Jan 2024 22:51:06 -0800 Subject: [PATCH] feat: set cluster ID as optional when specifying shard info --- packages/interfaces/src/message.ts | 2 +- packages/interfaces/src/protocols.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/interfaces/src/message.ts b/packages/interfaces/src/message.ts index 1c8348239e..a98090220a 100644 --- a/packages/interfaces/src/message.ts +++ b/packages/interfaces/src/message.ts @@ -1,7 +1,7 @@ import type { PubsubTopic } from "./misc.js"; export interface SingleShardInfo { - clusterId: number; + clusterId?: number; /** * Specifying this field indicates to the encoder/decoder that static sharding must be used. */ diff --git a/packages/interfaces/src/protocols.ts b/packages/interfaces/src/protocols.ts index c7c223c6b4..b21a5871b5 100644 --- a/packages/interfaces/src/protocols.ts +++ b/packages/interfaces/src/protocols.ts @@ -23,7 +23,7 @@ export interface IBaseProtocol { } export type ContentTopicInfo = { - clusterId: number; + clusterId?: number; contentTopics: string[]; };