From 4fc89a6c5d99eb7bc6453ce138daf04f52308ffc Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 9 Oct 2022 18:15:14 +0100 Subject: [PATCH] bcacheup: oops, flag.Interval should be flag.Duration --- go/nix/bcacheup/bcacheup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/nix/bcacheup/bcacheup.go b/go/nix/bcacheup/bcacheup.go index f2a9cc5d04..5bbbd51143 100644 --- a/go/nix/bcacheup/bcacheup.go +++ b/go/nix/bcacheup/bcacheup.go @@ -32,7 +32,7 @@ import ( var ( blobURLFlag = flag.String("cache_url", "", "Cache URL") storeDBFlag = flag.String("nix_store_db", nixstore.DefaultStoreDB, "Path to the nix store database") - stateSummaryIntervalFlag = flag.Interval("state_summary_interval", 10*time.Second, "Time between state summary outputs.") + stateSummaryIntervalFlag = flag.Duration("state_summary_interval", 10*time.Second, "Time between state summary outputs.") ) var (