mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-23 22:46:46 +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)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !accountActive {
|
||||
return c.JSON(http.StatusForbidden, ErrResp{
|
||||
Ok: false,
|
||||
|
@ -39,12 +39,12 @@ func (c *TaskerClient) CreateTask(ctx context.Context, taskName TaskName, queueN
|
||||
asynq.Retention(taskRetention),
|
||||
asynq.Timeout(taskTimeout),
|
||||
}
|
||||
taskOpts := append(defaultOpts, extraOpts...)
|
||||
defaultOpts = append(defaultOpts, extraOpts...)
|
||||
|
||||
qTask := asynq.NewTask(
|
||||
string(taskName),
|
||||
task.Payload,
|
||||
taskOpts...
|
||||
defaultOpts...,
|
||||
)
|
||||
|
||||
taskInfo, err := c.Client.EnqueueContext(ctx, qTask)
|
||||
|
Loading…
Reference in New Issue
Block a user