Skip to content

Commit

Permalink
feat: refresh session on start
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Jun 5, 2023
1 parent 5e876e8 commit 16bce70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ func Validate(ctx *c.Context, options *Options, prevErr *error) func(*cobra.Comm

func GetDependencies() c.Dependencies {

client := yahooClient.New(resty.New(), resty.New())
yahooClient.RefreshSession(client, resty.New())

return c.Dependencies{
Fs: afero.NewOsFs(),
HttpClients: c.DependenciesHttpClients{
Default: resty.New(),
Yahoo: yahooClient.New(),
Yahoo: client,
},
}

Expand Down

0 comments on commit 16bce70

Please sign in to comment.