Remove useless 'registered' member in thread gdbm

This commit is contained in:
lash 2024-09-22 03:10:58 +01:00
parent a455cfb854
commit 7d3ff690f0
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -14,7 +14,6 @@ var (
type ThreadGdbmDb struct { type ThreadGdbmDb struct {
db db.Db db db.Db
registered bool
connStr string connStr string
} }
@ -40,7 +39,6 @@ func(tdb *ThreadGdbmDb) Connect(ctx context.Context, connStr string) error {
dbC[connStr] = make(chan db.Db, 1) dbC[connStr] = make(chan db.Db, 1)
dbC[connStr]<- gdb dbC[connStr]<- gdb
tdb.connStr = connStr tdb.connStr = connStr
tdb.registered = true
return nil return nil
} }