bd94dd3055
* Store wireguard peers in db * Add update to nym-node * Move gateway-requests and gateway-storage to common * Carry storage to PeerController field * Double kernel modifications with storage ones * Take storage peers at boot * Link storage query for registration flow * Move authenticator peer comms in peer manager * Modify template too * Remove unused * Fix clippy * Fix clippy non-linux * Keep storage data up-to-date on every check * Check for staleness in storage timestamps * Remove potential for panic in unwrap * Fix clippy * Fmt * Clippy after rebase * Remove in memory test structure
15 lines
426 B
Rust
15 lines
426 B
Rust
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("peers in wireguard don't match with in-memory ")]
|
|
PeerMismatch,
|
|
|
|
#[error("{0}")]
|
|
Defguard(#[from] defguard_wireguard_rs::error::WireguardInterfaceError),
|
|
|
|
#[error("{0}")]
|
|
GatewayStorage(#[from] nym_gateway_storage::error::StorageError),
|
|
}
|