breaking compatibility changes. take context for first arguments.

This commit is contained in:
Yasuhiro Matsumoto 2017-04-17 11:10:29 +09:00
parent 32e66a3d72
commit 5e84b57bf3
18 changed files with 176 additions and 139 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"context"
"errors"
"fmt"
@ -14,7 +15,7 @@ func cmdSearch(c *cli.Context) error {
}
client := c.App.Metadata["client"].(*mastodon.Client)
results, err := client.Search(argstr(c), false)
results, err := client.Search(context.Background(), argstr(c), false)
if err != nil {
return err
}