golint & go vet
This commit is contained in:
parent
e1b7bac4e6
commit
70b6261e34
6 changed files with 9 additions and 7 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
func cmdStream(c *cli.Context) error {
|
||||
client := c.App.Metadata["client"].(*mastodon.Client)
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
sc := make(chan os.Signal, 1)
|
||||
signal.Notify(sc, os.Interrupt)
|
||||
q, err := client.StreamingPublic(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue