Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove all unused properties in drainpipe/firehose.rs #121

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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