We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43310a commit 80d3792Copy full SHA for 80d3792
1 file changed
google/cloud/storage/internal/grpc/object_read_source.cc
@@ -31,7 +31,9 @@ GrpcObjectReadSource::GrpcObjectReadSource(
31
std::shared_ptr<storage::internal::HashFunction> hash_function)
32
: timer_source_(std::move(timer_source)),
33
stream_(std::move(stream)),
34
- hash_function_(std::move(hash_function)) {}
+ hash_function_(hash_function
35
+ ? std::move(hash_function)
36
+ : storage::internal::CreateNullHashFunction()) {}
37
38
StatusOr<storage::internal::HttpResponse> GrpcObjectReadSource::Close() {
39
if (stream_) stream_ = nullptr;
0 commit comments