diff --git a/src/dht.cpp b/src/dht.cpp index 7a73ca8922a44b765f947b20bcf8cbf902dbe2f6..1d9e83b9cfa9f2641b277d749473428ad40a5321 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -1671,8 +1671,10 @@ Dht::storageStore(const InfoHash& id, const std::shared_ptr<Value>& value, time_ const auto& now = scheduler.time(); created = std::min(created, now); - if (created + getType(value->id).expiration < now) + if (created + getType(value->type).expiration < now) { + DHT_LOG.WARN("[store %s] won't store already expired value", id.toString().c_str()); return false; + } auto st = findStorage(id); if (st == store.end()) {