From b7bf9c74be6a1161a71013045368152b4bdcfd16 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Tue, 26 Dec 2023 15:54:43 -0500 Subject: [PATCH] Fix import error --- src/client.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index e523b7a..80ed153 100644 --- a/src/client.rs +++ b/src/client.rs @@ -9,13 +9,14 @@ use once_cell::sync::Lazy; use percent_encoding::{percent_encode, CONTROLS}; use serde_json::Value; -use std::{io, result::Result}; +use std::{io, result::Result, sync::atomic::Ordering::SeqCst}; use tokio::sync::RwLock; +use crate::config; use crate::dbg_msg; +use crate::instance_info::INSTANCE_INFO; use crate::oauth::{token_daemon, Oauth}; use crate::server::RequestExt; -use crate::{config, dbg_msg}; const REDDIT_URL_BASE: &str = "https://oauth.reddit.com";