Skip to content

Commit

Permalink
Add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 29, 2024
1 parent 634c0df commit be724b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sources/dynamodb/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (s *StreamStore) processShard(ctx context.Context, shard *dynamodbstreams.S
messages = append(messages, msg.RawMessage())
}

// TODO: Create an actual iterator over the shards that is passed to the writer.
if _, err = _writer.Write(ctx, lib.NewSingleBatchIterator(messages)); err != nil {
logger.Panic("Failed to publish messages, exiting...", slog.Any("err", err))
}
Expand Down
1 change: 1 addition & 0 deletions sources/dynamodb/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (s *SnapshotStore) streamAndPublish(ctx context.Context, _writer writer.Wri
messages = append(messages, dynamoMsg.RawMessage())
}

// TODO: Create an actual iterator over the files that is passed to the writer.
if _, err := _writer.Write(ctx, lib.NewSingleBatchIterator(messages)); err != nil {
return fmt.Errorf("failed to publish messages: %w", err)
}
Expand Down

0 comments on commit be724b1

Please sign in to comment.