mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
add missing license header (#1204)
This commit is contained in:
committed by
Bastian Köcher
parent
19201175e6
commit
07b9686e52
@@ -1,3 +1,21 @@
|
|||||||
|
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Parity Bridges Common.
|
||||||
|
|
||||||
|
// Parity Bridges Common is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Parity Bridges Common is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Adapter for using `enum RelayerMode` in a context which requires `RelayStrategy`.
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
@@ -9,7 +27,7 @@ use crate::{
|
|||||||
relay_strategy::{AltruisticStrategy, RationalStrategy, RelayReference, RelayStrategy},
|
relay_strategy::{AltruisticStrategy, RationalStrategy, RelayReference, RelayStrategy},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The relayer doesn't care about rewards.
|
/// `RelayerMode` adapter.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct MixStrategy {
|
pub struct MixStrategy {
|
||||||
relayer_mode: RelayerMode,
|
relayer_mode: RelayerMode,
|
||||||
|
|||||||
Reference in New Issue
Block a user