[tor-commits] [pluggable-transports/snowflake] 05/07: Update distinct counter interface

gitolite role git at cupani.torproject.org
Thu Jun 16 17:23:18 UTC 2022


This is an automated email from the git hooks/post-receive script.

shelikhoo pushed a commit to branch main
in repository pluggable-transports/snowflake.

commit af1134362aff7ddbd2103b1b2fd284abe9a03782
Author: Shelikhoo <xiaokangwang at outlook.com>
AuthorDate: Mon May 30 16:34:15 2022 +0100

    Update distinct counter interface
---
 distinctcounter/counter.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/distinctcounter/counter.go b/distinctcounter/counter.go
index c128465..67110b4 100644
--- a/distinctcounter/counter.go
+++ b/distinctcounter/counter.go
@@ -12,14 +12,14 @@ import (
 
 func main() {
 	inputFile := flag.String("in", "", "")
-	start := flag.String("start", "", "")
-	end := flag.String("end", "", "")
+	start := flag.String("from", "", "")
+	end := flag.String("to", "", "")
 	flag.Parse()
-	startTime, err := time.Parse(time.UnixDate, *start)
+	startTime, err := time.Parse(time.RFC3339, *start)
 	if err != nil {
 		log.Fatal("unable to parse start time:", err)
 	}
-	endTime, err := time.Parse(time.UnixDate, *end)
+	endTime, err := time.Parse(time.RFC3339, *end)
 	if err != nil {
 		log.Fatal("unable to parse end time:", err)
 	}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list