Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit c421f0f

Browse files
authored
fix: error handling improvements (#773)
1 parent a352b40 commit c421f0f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/rpc/blob_datasource.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ func (ds *BlobDataSource) GetBlobs(
7878
}
7979
}
8080
}
81-
err = nil
82-
return sidecars, err
81+
return sidecars, nil
8382
}
8483

8584
// getBlobFromServer get blob data from server path `/getBlob`.

pkg/rpc/subscription.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ func waitSubErr(ctx context.Context, sub event.Subscription) (event.Subscription
124124
case err := <-sub.Err():
125125
return sub, err
126126
case <-ctx.Done():
127-
return sub, nil
127+
return sub, ctx.Err()
128128
}
129129
}

0 commit comments

Comments
 (0)