MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_already_open

Function is_already_open

atomic-repository/src/repository/database.rs:250–253  ·  view source on GitHub ↗
(error: &PristineError)

Source from the content-addressed store, hash-verified

248}
249
250fn is_already_open(error: &PristineError) -> bool {
251 matches!(error, PristineError::Database(inner)
252 if matches!(inner.as_ref(), redb::DatabaseError::DatabaseAlreadyOpen))
253}
254
255fn is_not_found(error: &PristineError) -> bool {
256 matches!(error, PristineError::Database(inner)

Callers 1

add_change_storeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected