From 6c3942e37d57d4d80ea650fbb3678d937de511fb Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 2 Dec 2024 23:34:08 -0800 Subject: [PATCH] cloud only needed to upload places --- validation/src/main.rs | 5 ++--- validation/src/publisher.rs | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/validation/src/main.rs b/validation/src/main.rs index 6df64c1..bbff7f3 100644 --- a/validation/src/main.rs +++ b/validation/src/main.rs @@ -17,16 +17,15 @@ impl std::error::Error for StartupError{} #[tokio::main] async fn main()->Result<(),StartupError>{ - // cookies and clouds + // talk to roblox let cookie_context=rbx_asset::cookie::CookieContext::new(rbx_asset::cookie::Cookie::new("".to_owned())); - let cloud_context=rbx_asset::cloud::CloudContext::new(rbx_asset::cloud::ApiKey::new("".to_owned())); // nats let nasty=async_nats::connect("nats").await.map_err(StartupError::Connect)?; // connect to nats let (publisher,validator)=tokio::try_join!( - publisher::Publisher::new(nasty.clone(),cookie_context.clone(),cloud_context), + publisher::Publisher::new(nasty.clone(),cookie_context.clone()), validator::Validator::new(nasty,cookie_context) ).map_err(StartupError::Subscribe)?; diff --git a/validation/src/publisher.rs b/validation/src/publisher.rs index b68e76f..676a1d4 100644 --- a/validation/src/publisher.rs +++ b/validation/src/publisher.rs @@ -14,19 +14,16 @@ pub struct Publisher{ nats:async_nats::Client, subscriber:async_nats::Subscriber, roblox_cookie:rbx_asset::cookie::CookieContext, - roblox_cloud:rbx_asset::cloud::CloudContext, } impl Publisher{ pub async fn new( nats:async_nats::Client, roblox_cookie:rbx_asset::cookie::CookieContext, - roblox_cloud:rbx_asset::cloud::CloudContext, )->Result{ Ok(Self{ subscriber:nats.subscribe("publish").await?, nats, roblox_cookie, - roblox_cloud, }) } pub async fn run(mut self){