MCPcopy Create free account
hub / github.com/dagger/dagger / Close

Method Close

engine/clientdb/dbs.go:225–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func (db *DB) Close() (rerr error) {
226 if db == nil {
227 return nil
228 }
229 lg := slog.Default().With("clientID", db.clientID)
230 db.dbs.perDBLock.Lock(db.clientID)
231 defer db.dbs.perDBLock.Unlock(db.clientID)
232 return db.dbs.close(db, lg)
233}

Callers 1

TestDBCloseNilFunction · 0.95

Calls 3

DefaultFunction · 0.92
WithMethod · 0.45
closeMethod · 0.45

Tested by 1

TestDBCloseNilFunction · 0.76