Skip to content

Commit bae0188

Browse files
committed
fix: remove unnecessary type
1 parent d36ec9e commit bae0188

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

webserver/src/dto/pos.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,3 @@ pub struct WithdrawsDto {
8282
#[validate(range(min = 1, max = 10000))]
8383
pub epoch: Option<u64>,
8484
}
85-
86-
#[derive(Clone, Serialize, Deserialize, Validate)]
87-
pub struct LatestEpochRewardDto {
88-
pub epoch: i32,
89-
}

webserver/src/handler/pos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use axum_extra::extract::Query;
55
use axum_macros::debug_handler;
66

77
use crate::dto::pos::{
8-
AllValidatorsQueryParams, BondsDto, LatestEpochRewardDto, UnbondsDto,
9-
ValidatorQueryParams, ValidatorStateDto, WithdrawsDto,
8+
AllValidatorsQueryParams, BondsDto, UnbondsDto, ValidatorQueryParams,
9+
ValidatorStateDto, WithdrawsDto,
1010
};
1111
use crate::error::api::ApiError;
1212
use crate::response::pos::{

0 commit comments

Comments
 (0)