SSH server entry point. #77

Merged
lash merged 11 commits from lash/ssh-2 into master 2024-09-26 15:55:51 +02:00
Showing only changes of commit 9b71244391 - Show all commits

View File

@ -14,7 +14,6 @@ var (
type ThreadGdbmDb struct {
db db.Db
registered bool
connStr string
}
@ -30,6 +29,7 @@ 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,7 +39,6 @@ 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
}