Threaded gdbm #76
@ -30,6 +30,7 @@ func(tdb *ThreadGdbmDb) Connect(ctx context.Context, connStr string) error {
|
|||||||
_, ok = dbC[connStr]
|
_, ok = dbC[connStr]
|
||||||
if ok {
|
if ok {
|
||||||
logg.WarnCtxf(ctx, "already registered thread gdbm, skipping", "connStr", connStr)
|
logg.WarnCtxf(ctx, "already registered thread gdbm, skipping", "connStr", connStr)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
gdb := gdbmdb.NewGdbmDb()
|
gdb := gdbmdb.NewGdbmDb()
|
||||||
err := gdb.Connect(ctx, connStr)
|
err := gdb.Connect(ctx, connStr)
|
||||||
|
Loading…
Reference in New Issue
Block a user