Skip to content

Commit

Permalink
Remove ptr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jul 14, 2024
1 parent d7cd374 commit 6022c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/dynamodb/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (s *StreamStore) ListenToChannel(ctx context.Context, writer writers.Writer
}
}

func (s *StreamStore) processShard(ctx context.Context, shard *types.Shard, writer writers.Writer) {
func (s *StreamStore) processShard(ctx context.Context, shard types.Shard, writer writers.Writer) {
// Is there another go-routine processing this shard?
if s.storage.GetShardProcessing(*shard.ShardId) {
return
Expand Down
4 changes: 2 additions & 2 deletions sources/dynamodb/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type StreamStore struct {

streams *dynamodbstreams.Client
storage *offsets.OffsetStorage
shardChan chan *types.Shard
shardChan chan types.Shard
}

func (s *StreamStore) Close() error {
Expand Down Expand Up @@ -72,7 +72,7 @@ func (s *StreamStore) scanForNewShards(ctx context.Context) error {
}

for _, shard := range result.StreamDescription.Shards {
s.shardChan <- &shard
s.shardChan <- shard
}

if result.StreamDescription.LastEvaluatedShardId == nil {
Expand Down

0 comments on commit 6022c8c

Please sign in to comment.