invert ps & rr init
This commit is contained in:
parent
a6f5a44c6a
commit
f557e36941
10
src/ipblc.rs
10
src/ipblc.rs
@ -37,13 +37,15 @@ pub async fn run() {
|
||||
let (ipeventtx, mut ipeventrx): (Sender<IpEvent>, Receiver<IpEvent>) = channel(WS_CHAN_SIZE);
|
||||
let ipeventtxarc = Arc::new(RwLock::new(ipeventtx));
|
||||
|
||||
let ctxwsrr = Arc::clone(&ctxarc);
|
||||
let ipeventws = Arc::clone(&ipeventtxarc);
|
||||
let mut wssocketrr = websocketreqrep(&ctxwsrr).await;
|
||||
|
||||
// init pubsub
|
||||
let ctxwsps = Arc::clone(&ctxarc);
|
||||
let ipeventws = Arc::clone(&ipeventtxarc);
|
||||
websocketpubsub(&ctxwsps, ipeventws).await;
|
||||
|
||||
let ctxwsrr = Arc::clone(&ctxarc);
|
||||
let mut wssocketrr = websocketreqrep(&ctxwsrr).await;
|
||||
|
||||
// init file watcher
|
||||
let mut blrx = watchfiles(&ctxarc).await;
|
||||
|
||||
let ctxclone = Arc::clone(&ctxarc);
|
||||
|
Loading…
Reference in New Issue
Block a user