Unverified Commit 3902a6c5 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

fixup: more size_t -> uint64_t

parent 5df0f163
...@@ -689,7 +689,7 @@ private: ...@@ -689,7 +689,7 @@ private:
if (actual < amount) { if (actual < amount) {
// We din't complete pumping. Restart from the pipe. // We din't complete pumping. Restart from the pipe.
return input.pumpTo(pipe, amount - actual) return input.pumpTo(pipe, amount - actual)
.then([actual](uint64_t actual2) { return actual + actual2; }); .then([actual](uint64_t actual2) -> uint64_t { return actual + actual2; });
} }
} }
...@@ -723,7 +723,7 @@ private: ...@@ -723,7 +723,7 @@ private:
// AsyncPipe state when a pumpTo() is currently waiting for a corresponding write(). // AsyncPipe state when a pumpTo() is currently waiting for a corresponding write().
public: public:
BlockedPumpTo(PromiseFulfiller<size_t>& fulfiller, AsyncPipe& pipe, BlockedPumpTo(PromiseFulfiller<uint64_t>& fulfiller, AsyncPipe& pipe,
AsyncOutputStream& output, uint64_t amount) AsyncOutputStream& output, uint64_t amount)
: fulfiller(fulfiller), pipe(pipe), output(output), amount(amount) { : fulfiller(fulfiller), pipe(pipe), output(output), amount(amount) {
KJ_REQUIRE(pipe.state == nullptr); KJ_REQUIRE(pipe.state == nullptr);
...@@ -879,7 +879,7 @@ private: ...@@ -879,7 +879,7 @@ private:
} }
private: private:
PromiseFulfiller<size_t>& fulfiller; PromiseFulfiller<uint64_t>& fulfiller;
AsyncPipe& pipe; AsyncPipe& pipe;
AsyncOutputStream& output; AsyncOutputStream& output;
uint64_t amount; uint64_t amount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment