fix: deepsource suggestions

This commit is contained in:
Mohamed Sohail 2023-03-08 06:59:10 +00:00
parent 0ef18b4e3e
commit 5a94a38805
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -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)