nym-client-core 1.21.0

Crate containing core client functionality and configs, used by all other Nym client implentations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0

use crate::{client::replies::reply_storage, config::DebugConfig};

pub fn setup_empty_reply_surb_backend(debug_config: &DebugConfig) -> reply_storage::Empty {
    reply_storage::Empty {
        min_surb_threshold: debug_config
            .reply_surbs
            .minimum_reply_surb_storage_threshold,
        max_surb_threshold: debug_config
            .reply_surbs
            .maximum_reply_surb_storage_threshold,
    }
}