diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-17 21:54:45 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-17 21:54:45 +0200 |
commit | 86b465cfccef5552aa111941fb74ec622e2e7c03 (patch) | |
tree | b48b040e34be40f785702cbe02114b85ba658e67 /src/network/protocol.h | |
parent | b09e73f0abcc386719a2235cc3ae61fb1cbfc5ca (diff) |
Network: use digest instead of partial ref in protocol header
Diffstat (limited to 'src/network/protocol.h')
-rw-r--r-- | src/network/protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/protocol.h b/src/network/protocol.h index 8aa22a2..4794ba6 100644 --- a/src/network/protocol.h +++ b/src/network/protocol.h @@ -107,7 +107,7 @@ struct NetworkProtocol::Header struct Item { const Type type; - const variant<PartialRef, UUID> value; + const variant<Digest, UUID> value; bool operator==(const Item &) const; bool operator!=(const Item & other) const { return !(*this == other); } @@ -116,7 +116,7 @@ struct NetworkProtocol::Header Header(const vector<Item> & items): items(items) {} static optional<Header> load(const PartialRef &); static optional<Header> load(const PartialObject &); - PartialObject toObject() const; + PartialObject toObject(const PartialStorage &) const; const vector<Item> items; }; |