summaryrefslogtreecommitdiff
path: root/src/network/protocol.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-08-17 21:54:45 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-08-17 21:54:45 +0200
commit86b465cfccef5552aa111941fb74ec622e2e7c03 (patch)
treeb48b040e34be40f785702cbe02114b85ba658e67 /src/network/protocol.h
parentb09e73f0abcc386719a2235cc3ae61fb1cbfc5ca (diff)
Network: use digest instead of partial ref in protocol header
Diffstat (limited to 'src/network/protocol.h')
-rw-r--r--src/network/protocol.h4
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;
};