From a30e278e1c3eec16aa2cb77726a49402f290dd80 Mon Sep 17 00:00:00 2001 From: b-yap <2826165+b-yap@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:10:27 +0800 Subject: [PATCH] https://github.com/pendulum-chain/spacewalk/pull/546#discussion_r1741628891, https://github.com/pendulum-chain/spacewalk/pull/546#discussion_r1741631749 --- .github/workflows/ci-main.yml | 2 +- pallets/stellar-relay/src/validation.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 34c2aa1c3..2b69a18aa 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -7,7 +7,7 @@ name: continuous-integration-main jobs: ci: strategy: - max-parallel: 1 + max-parallel: 2 matrix: rust: [ stable, nightly ] runs-on: ubuntu-latest diff --git a/pallets/stellar-relay/src/validation.rs b/pallets/stellar-relay/src/validation.rs index 8ea4c8134..acbb668ca 100644 --- a/pallets/stellar-relay/src/validation.rs +++ b/pallets/stellar-relay/src/validation.rs @@ -207,7 +207,6 @@ pub fn validate_envelopes<'a, T: Config>( validated_envelopes.push(envelope); } - // it's ok to use unwrap here, since the size will be <= to the provided envelopes Ok(UnlimitedVarArray::new(validated_envelopes).unwrap_or(UnlimitedVarArray::new_empty())) }