Define the AppEnv struct
| 1525 | |
| 1526 | // Define the AppEnv struct |
| 1527 | pub struct AppEnv { |
| 1528 | pub collections_map: CollectionsMap, |
| 1529 | pub users_map: UsersMap, |
| 1530 | pub persist: Arc<Environment>, |
| 1531 | // Single hash, must not be persisted to disk, only the double hash must be |
| 1532 | // written to disk |
| 1533 | pub admin_key: SingleSHA256Hash, |
| 1534 | pub active_sessions: Arc<DashMap<String, SessionDetails>>, |
| 1535 | } |
| 1536 | |
| 1537 | fn get_admin_key(env: Arc<Environment>, args: CosdataArgs) -> lmdb::Result<SingleSHA256Hash> { |
| 1538 | // Create meta database if it doesn't exist |
nothing calls this directly
no outgoing calls
no test coverage detected