Skip to content

Commit

Permalink
fix: change max size of a topic message (from 10KB to 100KB)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-software-pl committed Oct 11, 2024
1 parent b12834b commit 4a0834f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/addTopicDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const DEFAULT_TOPIC_VALUES: TopicFormikValues = {
advancedValues: {
acknowledgement: "LEADER",
trackingEnabled: false,
maxMessageSize: 10240,
maxMessageSize: 102400,
retentionTime: 1,
},
topic: "",
Expand Down
3 changes: 2 additions & 1 deletion src/store/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { addMetadata, withoutMetadataFields } from "./metadata";
import { Store } from "./store";
import { Subscription } from "./subscription";
import { ValidationError } from "./topics";
import { DEFAULT_TOPIC_VALUES } from "../components/addTopicDialog";

export class Topic implements TopicModel {
static GROUP_NAME_SEPARATOR = ".";
Expand All @@ -43,7 +44,7 @@ export class Topic implements TopicModel {
@observable migratedFromJsonType: boolean;
@observable schemaIdAwareSerializationEnabled: boolean;
@observable contentType: ContentType;
@observable maxMessageSize = 10240;
@observable maxMessageSize = DEFAULT_TOPIC_VALUES.advancedValues.maxMessageSize;
@observable auth: AuthModel;
@observable createdAt: number;
@observable modifiedAt: number;
Expand Down

0 comments on commit 4a0834f

Please sign in to comment.