From ab429f286607118226001418b369b006e96fd206 Mon Sep 17 00:00:00 2001 From: Damien Sedgwick Date: Tue, 10 Sep 2024 20:21:18 +0100 Subject: [PATCH] removed all properties that are not used this helps to clear up the console when running drainpipe. --- packages-rs/drainpipe/src/firehose.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages-rs/drainpipe/src/firehose.rs b/packages-rs/drainpipe/src/firehose.rs index 2a0bac94..c8760ad7 100644 --- a/packages-rs/drainpipe/src/firehose.rs +++ b/packages-rs/drainpipe/src/firehose.rs @@ -1,4 +1,3 @@ -use chrono::{DateTime, Utc}; use cid::Cid; use serde::{Deserialize, Serialize}; use std::io::Cursor; @@ -7,8 +6,6 @@ use std::io::Cursor; pub struct Header { #[serde(rename(deserialize = "t"))] pub type_: String, - #[serde(rename(deserialize = "op"))] - pub operation: u8, } use std::fmt; @@ -72,34 +69,23 @@ pub struct SubscribeReposCommitOperation { #[derive(Debug, Deserialize)] pub struct SubscribeReposCommit { - pub commit: Cid, #[serde(rename(deserialize = "ops"))] pub operations: Vec, - pub prev: Option, - pub rebase: bool, pub repo: String, #[serde(rename(deserialize = "seq"))] pub sequence: i64, - pub time: DateTime, - #[serde(rename(deserialize = "tooBig"))] - pub too_big: bool, } #[derive(Debug, Deserialize)] pub struct SubscribeReposHandle { - pub did: String, - pub handle: String, #[serde(rename(deserialize = "seq"))] pub sequence: i64, - pub time: DateTime, } #[derive(Debug, Deserialize)] pub struct SubscribeReposTombstone { - pub did: String, #[serde(rename(deserialize = "seq"))] pub sequence: i64, - pub time: DateTime, } #[derive(Debug, Deserialize)]