Skip to content

Commit

Permalink
removed all properties that are not used (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiensedgwick authored Sep 11, 2024
1 parent 7f44043 commit c4396b0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages-rs/drainpipe/src/firehose.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use chrono::{DateTime, Utc};
use cid::Cid;
use serde::{Deserialize, Serialize};
use std::io::Cursor;
Expand All @@ -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;
Expand Down Expand Up @@ -72,34 +69,23 @@ pub struct SubscribeReposCommitOperation {

#[derive(Debug, Deserialize)]
pub struct SubscribeReposCommit {
pub commit: Cid,
#[serde(rename(deserialize = "ops"))]
pub operations: Vec<SubscribeReposCommitOperation>,
pub prev: Option<Cid>,
pub rebase: bool,
pub repo: String,
#[serde(rename(deserialize = "seq"))]
pub sequence: i64,
pub time: DateTime<Utc>,
#[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<Utc>,
}

#[derive(Debug, Deserialize)]
pub struct SubscribeReposTombstone {
pub did: String,
#[serde(rename(deserialize = "seq"))]
pub sequence: i64,
pub time: DateTime<Utc>,
}

#[derive(Debug, Deserialize)]
Expand Down

0 comments on commit c4396b0

Please sign in to comment.