From ba2219bb41ceb0b3b1fbdfe54ac580a476fbffa5 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 5 Dec 2021 00:58:32 +0100 Subject: implemented open-ended shard interval --- cmd/sigsum_log_go/main.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cmd') diff --git a/cmd/sigsum_log_go/main.go b/cmd/sigsum_log_go/main.go index b22dd40..0c1035b 100644 --- a/cmd/sigsum_log_go/main.go +++ b/cmd/sigsum_log_go/main.go @@ -39,7 +39,6 @@ var ( maxRange = flag.Int64("max_range", 10, "maximum number of entries that can be retrived in a single request") interval = flag.Duration("interval", time.Second*30, "interval used to rotate the log's cosigned STH") shardStart = flag.Int64("shard_interval_start", 0, "start of shard interval since the UNIX epoch in seconds") - shardEnd = flag.Int64("shard_interval_end", 0, "end of shard interval since the UNIX epoch in seconds") gitCommit = "unknown" ) @@ -109,10 +108,6 @@ func setupInstanceFromFlags() (*sigsum.Instance, error) { if *shardStart < 0 { return nil, fmt.Errorf("shard start must be larger than zero") } - i.ShardEnd = uint64(*shardEnd) - if *shardEnd < *shardStart { - return nil, fmt.Errorf("shard end must be larger than shard start") - } i.Witnesses, err = newWitnessMap(*witnesses) if err != nil { return nil, fmt.Errorf("newWitnessMap: %v", err) -- cgit v1.2.3