diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-01 18:34:18 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-01 18:34:18 -0400 |
commit | 263ccdd48923b730fd7e6f687583160d7b24039b (patch) | |
tree | 156305c1928adae6f67ff1aacd2c55a0a0097a24 /src/libstore/legacy-ssh-store.cc | |
parent | c8c4bcf90e065b47c3ee2984b1f8ff696da889af (diff) |
Rename two hash constructors to proper functions
Diffstat (limited to 'src/libstore/legacy-ssh-store.cc')
-rw-r--r-- | src/libstore/legacy-ssh-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/legacy-ssh-store.cc b/src/libstore/legacy-ssh-store.cc index 35caf23e7..f9d95fd2b 100644 --- a/src/libstore/legacy-ssh-store.cc +++ b/src/libstore/legacy-ssh-store.cc @@ -113,7 +113,7 @@ struct LegacySSHStore : public Store if (GET_PROTOCOL_MINOR(conn->remoteVersion) >= 4) { auto s = readString(conn->from); - info->narHash = s.empty() ? std::optional<Hash>{} : Hash{s}; + info->narHash = s.empty() ? std::optional<Hash>{} : Hash::parseAnyPrefixed(s); info->ca = parseContentAddressOpt(readString(conn->from)); info->sigs = readStrings<StringSet>(conn->from); } |