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){