Skip to content

Commit

Permalink
feat: set cluster ID as optional when specifying shard info
Browse files Browse the repository at this point in the history
  • Loading branch information
adklempner committed Jan 16, 2024
1 parent c31a761 commit e5f0cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/interfaces/src/message.ts
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/interfaces/src/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface IBaseProtocol {
}

export type ContentTopicInfo = {
clusterId: number;
clusterId?: number;
contentTopics: string[];
};

Expand Down

0 comments on commit e5f0cf4

Please sign in to comment.