Skip to content

Commit

Permalink
#35 backward compatibility for EnableAutoCommit and EnableAutoOffsetS…
Browse files Browse the repository at this point in the history
…tore
  • Loading branch information
furkan.kavraz committed Apr 5, 2024
1 parent b8d92aa commit 024059d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/Implementations/ConfigurationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public ConfigurationService(IConfiguration configuration)

public long MessageConsumeLimitPerTopicPartition => GetValue<long?>("MessageConsumeLimitPerTopicPartition") ?? Int64.MaxValue;

public bool? EnableAutoCommit => GetValue<bool?>("EnableAutoCommit");
public bool? EnableAutoOffsetStore => GetValue<bool?>("EnableAutoOffsetStore");
public bool? EnableAutoCommit => GetValue<bool?>("EnableAutoCommit") ?? false;
public bool? EnableAutoOffsetStore => GetValue<bool?>("EnableAutoOffsetStore") ?? false;
public string GroupId => GetValueOrThrowInvalidConfigException("GroupId");
public string SaslUsername => GetValue<string>("SaslUsername");
public string SaslPassword => GetValue<string>("SaslPassword");
Expand Down

0 comments on commit 024059d

Please sign in to comment.