We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b9532 commit ceefca4Copy full SHA for ceefca4
core/common/libp2p/cbor_stream.cpp
@@ -43,8 +43,7 @@ namespace fc::common::libp2p {
43
});
44
}
45
46
- void CborStream::consume(gsl::span<uint8_t> input,
47
- const ReadCallbackFunc &cb) {
+ void CborStream::consume(gsl::span<uint8_t> input, ReadCallbackFunc cb) {
48
auto consumed = buffering_.consume(input);
49
if (!consumed) {
50
return cb(consumed.error());
core/common/libp2p/cbor_stream.hpp
@@ -57,7 +57,7 @@ namespace fc::common::libp2p {
57
58
private:
59
void readMore(ReadCallbackFunc cb);
60
- void consume(gsl::span<uint8_t> input, const ReadCallbackFunc &cb);
+ void consume(gsl::span<uint8_t> input, ReadCallbackFunc cb);
61
62
std::shared_ptr<Stream> stream_;
63
CborBuffering buffering_;
0 commit comments