Make infra module free functions

This commit is contained in:
Jon Staab
2026-05-27 17:26:47 -07:00
parent 0f47b483aa
commit 35d9aab02a
7 changed files with 275 additions and 300 deletions
+1 -4
View File
@@ -29,7 +29,6 @@ use nostr_sdk::{Event, JsonUtil, Kind};
use crate::billing::Billing;
use crate::env;
use crate::infra::Infra;
use crate::models::{Relay, Tenant};
use crate::query;
use crate::robot::Robot;
@@ -52,16 +51,14 @@ pub struct Api {
pub billing: Billing,
pub stripe: Stripe,
pub robot: Robot,
pub infra: Infra,
}
impl Api {
pub fn new(billing: Billing, stripe: Stripe, robot: Robot, infra: Infra) -> Self {
pub fn new(billing: Billing, stripe: Stripe, robot: Robot) -> Self {
Self {
billing,
stripe,
robot,
infra,
}
}