Skip to content

Commit

Permalink
Fix issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
xalanq committed Apr 20, 2019
1 parent 962f963 commit 8eaea9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8eaea9d

Please sign in to comment.