debug: add subid debugging

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-03 11:10:59 -07:00
parent 2603d08d1a
commit 043ccf2146
4 changed files with 32 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
use std::collections::HashMap;
use crate::column::ColumnKind;
#[derive(Debug, Clone)]
pub enum SubKind {
/// Initial subscription. This is the first time we do a remote subscription
/// for a timeline
@@ -8,6 +10,8 @@ pub enum SubKind {
/// One shot requests, we can just close after we receive EOSE
OneShot,
Column(ColumnKind),
/// We are fetching a contact list so that we can use it for our follows
/// Filter.
// TODO: generalize this to any list?