Skip to content

Commit 97ff9bf

Browse files
authored
Merge pull request #13 from 0xff-dev/main
fix: fix typo and update default database
2 parents d8cf645 + 9fb79a6 commit 97ff9bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/depository/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141
contract = flag.String("contract", "depository", "contract name")
4242
addr = flag.String("addr", ":9999", "used to listen and serve http requests")
4343
db = flag.String("db", "pg", "which database to use, default is pg(postgresql)")
44-
dsn = flag.String("dsn", "postgres://bestchains:[email protected]:5432/bc-explorer?sslmode=disable", "database connection string")
44+
dsn = flag.String("dsn", "postgres://bestchains:[email protected]:5432/bc-saas?sslmode=disable", "database connection string")
4545
)
4646

4747
func main() {

pkg/listener/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (l *listener) Events(ctx context.Context) {
127127
ContentType: vd.ContentID,
128128
TrustedTimestamp: vd.TrustedTimestamp,
129129
}
130-
klog.V(5).Infof("[Debug] inser vd %+v, d: %+v into db", vd, d)
130+
klog.V(5).Infof("[Debug] insert vd %+v, d: %+v into db", vd, d)
131131

132132
if _, err := l.db.Model(&d).Insert(); err != nil {
133133
klog.Errorf("[Error] failed to insert data, return error %s", err)

0 commit comments

Comments
 (0)