Clarify FIXME in BinaryCacheStore::addToStoreCommon
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
9fbc31a65b
commit
412b3a54fb
|
@ -311,7 +311,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, Source & narSource
|
||||||
|
|
||||||
(void) addToStoreCommon(narSource, repair, checkSigs, {[&](HashResult nar) {
|
(void) addToStoreCommon(narSource, repair, checkSigs, {[&](HashResult nar) {
|
||||||
/* FIXME reinstate these, once we can correctly do hash modulo sink as
|
/* FIXME reinstate these, once we can correctly do hash modulo sink as
|
||||||
needed. */
|
needed. We need to throw here in case we uploaded a corrupted store path. */
|
||||||
// assert(info.narHash == nar.first);
|
// assert(info.narHash == nar.first);
|
||||||
// assert(info.narSize == nar.second);
|
// assert(info.narSize == nar.second);
|
||||||
return info;
|
return info;
|
||||||
|
|
Loading…
Reference in a new issue