From b41a6307db861802c0c88ab216ae01ebd9e5a699 Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 15 Nov 2024 12:04:35 +0100 Subject: [PATCH] Remove unused Default bound on InstanceState (#734) * Remove unused Default bound on InstanceState In the sequencer repo we don't have a proper `Default` implentation but one that's gated behind the testing feature because it wouldn't actually work. Working on https://github.com/EspressoSystems/espresso-sequencer/pull/2283 it seems that this is one of the pain points for removing the spread of the testing features in the sequencer crates. It looks like we don't need the trait bound anymore in the query service. * CI: run on all pull requests --- .github/workflows/build.yml | 3 --- .github/workflows/lint.yml | 3 --- src/data_source/update.rs | 6 +----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8826e1f..15389fd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,9 +6,6 @@ on: - main - release-* pull_request: - branches: - - main - - release-* workflow_dispatch: jobs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index edf8e6fc..281cbd19 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,9 +6,6 @@ on: - main - release-* pull_request: - branches: - - main - - release-* workflow_dispatch: jobs: diff --git a/src/data_source/update.rs b/src/data_source/update.rs index fe38494f..785d45e5 100644 --- a/src/data_source/update.rs +++ b/src/data_source/update.rs @@ -70,7 +70,6 @@ impl UpdateDataSource for T where T: UpdateAvailabilityData + Send + Sync, Payload: QueryablePayload, - ::InstanceState: Default, { async fn update(&self, event: &Event) -> Result<(), u64> { if let EventType::Decide { leaf_chain, qc, .. } = &event.event { @@ -154,10 +153,7 @@ where fn genesis_vid( leaf: &Leaf, -) -> anyhow::Result<(VidCommonQueryData, VidShare)> -where - ::InstanceState: Default, -{ +) -> anyhow::Result<(VidCommonQueryData, VidShare)> { let payload = Payload::::empty().0; let bytes = payload.encode(); let mut disperse = vid_scheme(GENESIS_VID_NUM_STORAGE_NODES)