mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -144,7 +144,6 @@ func executeStrategyFromFile(c *cli.Context) error {
|
||||
IntervalOverride: durationpb.New(intervalOverride),
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -171,7 +170,6 @@ func listAllTasks(c *cli.Context) error {
|
||||
c.Context,
|
||||
&btrpc.ListAllTasksRequest{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -217,7 +215,6 @@ func startTask(c *cli.Context) error {
|
||||
Id: id,
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -244,7 +241,6 @@ func startAllTasks(c *cli.Context) error {
|
||||
c.Context,
|
||||
&btrpc.StartAllTasksRequest{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -291,7 +287,6 @@ func stopTask(c *cli.Context) error {
|
||||
Id: id,
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -318,7 +313,6 @@ func stopAllTasks(c *cli.Context) error {
|
||||
c.Context,
|
||||
&btrpc.StopAllTasksRequest{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -365,7 +359,6 @@ func clearTask(c *cli.Context) error {
|
||||
Id: id,
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -392,7 +385,6 @@ func clearAllTasks(c *cli.Context) error {
|
||||
c.Context,
|
||||
&btrpc.ClearAllTasksRequest{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -623,7 +615,6 @@ func executeStrategyFromConfig(c *cli.Context) error {
|
||||
DoNotStore: dns,
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -50,7 +50,8 @@ func setupClient(c *cli.Context) (*grpc.ClientConn, context.CancelFunc, error) {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
opts := []grpc.DialOption{grpc.WithTransportCredentials(creds),
|
||||
opts := []grpc.DialOption{
|
||||
grpc.WithTransportCredentials(creds),
|
||||
grpc.WithPerRPCCredentials(auth.BasicAuth{
|
||||
Username: username,
|
||||
Password: password,
|
||||
|
||||
Reference in New Issue
Block a user