Compare commits

..

No commits in common. "9b71244391f2f843e92d1ac4778133f0e4159b7b" and "ada1f26b680331d9c6fb1e3ff5ea0b37a9df35ee" have entirely different histories.

View File

@ -14,6 +14,7 @@ var (
type ThreadGdbmDb struct {
db db.Db
registered bool
connStr string
}
@ -29,7 +30,6 @@ func(tdb *ThreadGdbmDb) Connect(ctx context.Context, connStr string) error {
_, ok = dbC[connStr]
if ok {
logg.WarnCtxf(ctx, "already registered thread gdbm, skipping", "connStr", connStr)
return nil
}
gdb := gdbmdb.NewGdbmDb()
err := gdb.Connect(ctx, connStr)
@ -39,6 +39,7 @@ func(tdb *ThreadGdbmDb) Connect(ctx context.Context, connStr string) error {
dbC[connStr] = make(chan db.Db, 1)
dbC[connStr]<- gdb
tdb.connStr = connStr
tdb.registered = true
return nil
}