Skip to content

Commit b86e3d3

Browse files
authored
Change Wait method to return a receive-only channel (#306)
1 parent 4bffcea commit b86e3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azkustoingest/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (r *Result) putQueued(ctx context.Context, i *Ingestion) {
7979

8080
// Wait returns a channel that can be checked for ingestion results.
8181
// In order to check actual status please use the ReportResultToTable option when ingesting data.
82-
func (r *Result) Wait(ctx context.Context) chan error {
82+
func (r *Result) Wait(ctx context.Context) <-chan error {
8383
ch := make(chan error, 1)
8484

8585
if r.record.Status.IsFinal() || !r.reportToTable {

0 commit comments

Comments
 (0)