Skip to content

Commit d8212ed

Browse files
committed
Fix lint and postgrest create table
1 parent 7ddbba2 commit d8212ed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/dst/run.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package dst
22

33
import (
4-
"errors"
54
"fmt"
65
"log/slog"
76
"math/rand" // nosemgrep
@@ -195,7 +194,7 @@ func RunDSTCmd() *cobra.Command {
195194
}
196195

197196
if !ok {
198-
return errors.New(fmt.Sprintf("DST failed for seed='%d'", seed))
197+
return fmt.Errorf("DST failed for seed='%d'", seed)
199198
}
200199

201200
return nil

internal/app/subsystems/aio/store/postgres/postgres.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const (
4747
CREATE INDEX IF NOT EXISTS idx_promises_sort_id ON promises(sort_id);
4848
4949
CREATE TABLE IF NOT EXISTS callbacks (
50-
id SERIAL PRIMARY KEY,
50+
id TEXT,
5151
promise_id TEXT,
5252
root_promise_id TEXT,
5353
recv BYTEA,

0 commit comments

Comments
 (0)