Skip to content

Commit

Permalink
Fix bin
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Jun 29, 2024
1 parent f9fbc02 commit 6cbbb37
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions src/bin/lightning_lendingd.rs
Original file line number Diff line number Diff line change
@@ -1,40 +1,38 @@
extern crate lightning;
extern crate dlc;
extern crate nostr;
extern crate log;
extern crate env_logger;

use lightning::{ln::peer_channel::ChannelDetails, util::logger::Logger};
use dlc::{contract::Contract, payout_curve::PayoutCurve};
use nostr::{self, NodeClient};
use lightning::{util::logger::Logger as LightningLogger}; // Renamed to avoid conflict
use dlc::{Contract, PayoutCurve}; // Assuming these are directly available
use nostr::NodeClient;
use log::info;

use crate::lightning_lending::{
bitcoin::Bitcoin,
nostr::Nostr,
dlc::Dlc,
lightning::Lightning,
};
struct AppLogger;

struct Logger;

impl Logger {
impl AppLogger {
fn new() -> Self {
Logger
AppLogger
}
}
fn main() {

fn main() {
env_logger::init();

env_logger::init();
info!("Logger initialized");

info!("Logger initialized");

// Assuming these `new` methods exist and accept a logger
let lightning = Lightning::new(&logger);
let bitcoin = Bitcoin::new(&logger);
let dlc = Dlc::new(&logger);
let nostr = Nostr::new(&logger);
let contract = Contract::new(&logger);
let payout_curve = PayoutCurve::new(&logger);
let node_client = NodeClient::new(&logger);
let logger = AppLogger::new();
// Use logger with your specific implementation
// Assuming new methods accept a reference to AppLogger

let lightning = Lightning::new(&logger);
let bitcoin = Bitcoin::new(&logger);
let dlc = Dlc::new(&logger);
let nostr = Nostr::new(&logger);
let contract = Contract::new(&logger);
let payout_curve = PayoutCurve::new(&logger);
let node_client = NodeClient::new(&logger);
}


0 comments on commit 6cbbb37

Please sign in to comment.