From d71c46b3a53424620064bf5a9f55e7d88bad79a9 Mon Sep 17 00:00:00 2001 From: fang Date: Sat, 18 Feb 2023 17:20:14 +0100 Subject: [PATCH] autoprop: properly keep track of runtime version Autoprop has a timer that checks whether we're on a new/different runtime periodically. When we detect we are, we re-build the props, so that they may be re-published under that new version identifier. However, we weren't updating the cached runtime version we store in state, causing every firing of this timer to re-build the props. Here, we correctly update state if we detect a difference, so that subsequent timers don't trigger redundant rebuilds. --- pkg/autoprop/app/autoprop.hoon | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/autoprop/app/autoprop.hoon b/pkg/autoprop/app/autoprop.hoon index a1da6dee2..5c38ce1fc 100644 --- a/pkg/autoprop/app/autoprop.hoon +++ b/pkg/autoprop/app/autoprop.hoon @@ -256,6 +256,7 @@ %- (slog 'on-wake vers failed' u.error.sign) [[next]~ this] ?: =(rev vers) [[next]~ this] + =. vers rev =/ tasks=(list @ta) ~(tap in ~(key by make)) =| cards=(list card) |-