Transport::expire_path seems to have no effect
Hi attermann,
I just found that bool Transport::expire_path(const Bytes& destination_hash) seems not to update the timestamp of DestinationEntry properly. I think the current code only mutates the local copy of the DestinationEntry that is not written back somehow.
I am not sure about the impact of this issue tho.
Keep up the great work! Cheers.
I propose adding interface functions to FileStore, HeapStore, TypedStore, etc., in microStore to allow for expiring entries and updating values without manipulating the timestamp or TTL.
Nice catch. That's one place that I didn't fully switch over to the microStore way. I have updated to just immediately remove the path since I don't see any reason to artificially expire it instead.
Regarding adding interface methods to FileStore and the like, put should already update the value. Not sure about how it interacts with timestamp and ttl though. I'd have to check the code. I still don't there's much use for artificially expiring an entry though when it can just as easily be removed.
Hi attermann, Thanks for the fixes! I agree about preferring to remove paths directly instead of artificially expiring them.
I still think it would be neat to have the functionality in microStore to update the value of an entry without manipulating the timestamp or TTL (the current put method updates both). This is mostly motivated by a private project where I want to use microStore, which definitely needs a way to update values without changing the timestamp and TTL. Maybe I'll add it myself and submit a PR for it in the near future :)
Absolutely, if it updates timestamps when that is not the intent then an alternative is needed. I’ll take a look soon when I get some free time.
On Jun 11, 2026, at 4:13 PM, nilu96 @.***> wrote:
nilu96 left a comment (attermann/microReticulum#60) https://github.com/attermann/microReticulum/issues/60#issuecomment-4685550419 Hi attermann, Thanks for the fixes! I agree about preferring to remove paths directly instead of artificially expiring them.
I still think it would be neat to have the functionality in microStore to update the value of an entry without manipulating the timestamp or TTL (the current put method updates both). This is mostly motivated by a private project where I want to use microStore, which definitely needs a way to update values without changing the timestamp and TTL. Maybe I'll add it myself and submit a PR for it in the near future :)
— Reply to this email directly, view it on GitHub https://github.com/attermann/microReticulum/issues/60?email_source=notifications&email_token=ACXDLGN42VBAGXP3FBUCXOL47MVJ3A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRYGU2TKMBUGE42M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4685550419, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXDLGPFMANMB5HNFHVA5C347MVJ3AVCNFSNUABFKJSXA33TNF2G64TZHM3TAMJVGYYDGNJTHNEXG43VMU5TINRQGUZTEMRXGU22C5QC. You are receiving this because you commented.