diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2021-12-05 00:58:32 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2021-12-05 00:58:32 +0100 |
commit | ba2219bb41ceb0b3b1fbdfe54ac580a476fbffa5 (patch) | |
tree | 5d2da4f78d95583b11f8b07d61aa69d10aebddfd /cmd | |
parent | 4daeaf52984d33c4ee1a213ce7eb7da191fb1d46 (diff) |
implemented open-ended shard interval
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sigsum_log_go/main.go | 5 |
1 files changed, 0 insertions, 5 deletions
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) |