Skip to content

Commit a85badf

Browse files
committed
comment about use of Result
1 parent ab154c4 commit a85badf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/verifier/change_stream.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ func (verifier *Verifier) createChangeStream(
366366

367367
// StartChangeStream starts the change stream.
368368
func (verifier *Verifier) StartChangeStream(ctx context.Context) error {
369-
// Result seems a bit simpler than messing with 2 separate channels.
369+
// Rather than Result we could have separate Timestamp and error channels,
370+
// but the single channel seems simpler/cleaner.
370371
resultChan := make(chan mo.Result[primitive.Timestamp])
371372

372373
go func() {

0 commit comments

Comments
 (0)