From 8eaea9d78ec7740c2d4f3faddab323f1dc357b9c Mon Sep 17 00:00:00 2001 From: xalanq Date: Sat, 20 Apr 2019 15:27:15 +0800 Subject: [PATCH] Fix issue #2 --- cf.go | 2 +- client/watch.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cf.go b/cf.go index 97c286eb..3d3c0e6e 100644 --- a/cf.go +++ b/cf.go @@ -103,7 +103,7 @@ Options: -h --help --version` - args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.2", false) + args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.3", false) color.Output = ansi.NewAnsiStdout() config.Init() err := cmd.Eval(args) diff --git a/client/watch.go b/client/watch.go index b3710075..c0aaa72a 100644 --- a/client/watch.go +++ b/client/watch.go @@ -389,7 +389,7 @@ func (c *Client) WatchSubmission(myURL string, n int, line bool) (err error) { display(submissions, true, &maxWidth, line) channels := findChannel(body) - url := fmt.Sprintf(`wss://pubsub.codeforces.com/ws/%v?_=%v&tag=&time=&eventid=`, + url := fmt.Sprintf(`ws://pubsub.codeforces.com/ws/%v?_=%v&tag=&time=&eventid=`, strings.Join(channels[:], "/"), time.Now().UTC().Format("20060102150405")) return watch(url, channels[0], submissions, &maxWidth, line)