Skip to content

Commit

Permalink
Merge pull request superstreamlabs#199 from bazen-teklehaymanot/fix-p…
Browse files Browse the repository at this point in the history
…artition-consumer
  • Loading branch information
idanasulin2706 authored Feb 5, 2024
2 parents be2b50b + d8c2857 commit 14b9a47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Memphis.Client/MemphisClient.Consumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ public async Task<MemphisConsumer> CreateConsumer(MemphisConsumerOptions consume
var consumer = new MemphisConsumer(this, consumerOptions, createConsumerResponse.PartitionsUpdate.PartitionsList);
_consumerCache.AddOrUpdate(consumer.Key, consumer, (_, _) => consumer);

if(createConsumerResponse is { PartitionsUpdate: { } partitionsUpdate })
{
_stationPartitions.AddOrUpdate(consumerOptions.StationName, partitionsUpdate, (_, _) => partitionsUpdate);
}

await ListenForSchemaUpdate(consumerOptions.StationName);

return consumer;
Expand Down

0 comments on commit 14b9a47

Please sign in to comment.