mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-24 06:56:47 +01:00
fix: deepsource suggestions
This commit is contained in:
parent
0ef18b4e3e
commit
5a94a38805
@ -41,6 +41,10 @@ func HandleSignTransfer(c echo.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
accountActive, gasQuota, err := cu.PgStore.GetAccountStatusByAddress(c.Request().Context(), req.From)
|
accountActive, gasQuota, err := cu.PgStore.GetAccountStatusByAddress(c.Request().Context(), req.From)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if !accountActive {
|
if !accountActive {
|
||||||
return c.JSON(http.StatusForbidden, ErrResp{
|
return c.JSON(http.StatusForbidden, ErrResp{
|
||||||
Ok: false,
|
Ok: false,
|
||||||
|
@ -39,12 +39,12 @@ func (c *TaskerClient) CreateTask(ctx context.Context, taskName TaskName, queueN
|
|||||||
asynq.Retention(taskRetention),
|
asynq.Retention(taskRetention),
|
||||||
asynq.Timeout(taskTimeout),
|
asynq.Timeout(taskTimeout),
|
||||||
}
|
}
|
||||||
taskOpts := append(defaultOpts, extraOpts...)
|
defaultOpts = append(defaultOpts, extraOpts...)
|
||||||
|
|
||||||
qTask := asynq.NewTask(
|
qTask := asynq.NewTask(
|
||||||
string(taskName),
|
string(taskName),
|
||||||
task.Payload,
|
task.Payload,
|
||||||
taskOpts...
|
defaultOpts...,
|
||||||
)
|
)
|
||||||
|
|
||||||
taskInfo, err := c.Client.EnqueueContext(ctx, qTask)
|
taskInfo, err := c.Client.EnqueueContext(ctx, qTask)
|
||||||
|
Loading…
Reference in New Issue
Block a user