this nonsense helps my poor ADHD

This commit is contained in:
Brandon Thomas committed 2022-01-23 23:57:26 -05:00
1 parent 245b3397a8
commit 92b31bc2c5
1 file changed
+12
@@ -35,6 +35,10 @@ use database_queries::twitch_oauth::insert::TwitchOauthTokenInsertBuilder;
// TODO: Error handling, handle disconnects.
// TODO: (cleanup) make the logic clearer to follow.
// =========================================
// =============== STAGE ONE ===============
// =========================================
pub struct TwitchPubsubUserSubscriberThread {
thread_id: ThreadId,
server_hostname: String,
@@ -143,6 +147,10 @@ impl TwitchPubsubUserSubscriberThread {
}
}
// =========================================
// =============== STAGE TWO ===============
// =========================================
/// The thread is somewhat of a state machine.
/// The first stage of thread startup can end prematurely, which is why
/// this is modeled as two different structs.
@@ -441,6 +449,10 @@ impl TwitchPubsubUserSubscriberThreadStageTwo {
}
}
// ====================================
// =============== MISC ===============
// ====================================
async fn lookup_oauth_record(
twitch_user_id: &TwitchUserId,
mysql_pool: &sqlx::Pool<MySql>