File tree Expand file tree Collapse file tree
google/cloud/storage/async Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ future<StatusOr<ReadPayload>> AsyncClient::ReadAll(
127127 request.clear_read_limit ();
128128 auto reader_future = ReadObject (std::move (request), std::move (opts));
129129 return reader_future.then (
130- [this ](future<StatusOr<std::pair<AsyncReader, AsyncToken>>> f) {
130+ [](future<StatusOr<std::pair<AsyncReader, AsyncToken>>> f) {
131131 auto r = f.get ();
132132 if (!r) return make_ready_future (StatusOr<ReadPayload>(r.status ()));
133133 return ReadAll (std::move (r->first ), std::move (r->second ));
Original file line number Diff line number Diff line change @@ -483,7 +483,8 @@ TEST(AsyncClient, ReadAllFromReader) {
483483 auto token = storage_internal::MakeAsyncToken (reader_impl_ptr);
484484
485485 auto client = AsyncClient (mock);
486- auto payload = client.ReadAll (std::move (reader), std::move (token)).get ();
486+ auto payload =
487+ AsyncClient::ReadAll (std::move (reader), std::move (token)).get ();
487488 ASSERT_STATUS_OK (payload);
488489 EXPECT_THAT (payload->contents (), ElementsAre (" test-" , " payload" ));
489490}
You can’t perform that action at this time.
0 commit comments