Skip to content

Commit

Permalink
Extract Breez Server URLs to sdk-common (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored Jun 26, 2024
1 parent 3ddd68c commit 9d44ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions libs/sdk-common/src/breez_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ use crate::grpc::swapper_client::SwapperClient;
use crate::grpc::{ChainApiServersRequest, PingRequest};
use crate::prelude::ServiceConnectivityError;

pub static PRODUCTION_BREEZSERVER_URL: &str = "https://bs1.breez.technology:443";
pub static STAGING_BREEZSERVER_URL: &str = "https://bs1-st.breez.technology:443";

pub struct BreezServer {
grpc_channel: Channel,
api_key: Option<String>,
Expand Down
3 changes: 0 additions & 3 deletions libs/sdk-core/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,6 @@ pub struct Config {
pub node_config: NodeConfig,
}

pub(crate) static PRODUCTION_BREEZSERVER_URL: &str = "https://bs1.breez.technology:443";
pub(crate) static STAGING_BREEZSERVER_URL: &str = "https://bs1-st.breez.technology:443";

impl Config {
pub fn production(api_key: String, node_config: NodeConfig) -> Self {
Config {
Expand Down

0 comments on commit 9d44ddd

Please sign in to comment.