Skip to content

Commit

Permalink
fix: JSON RPC Primitives with default features (#8606)
Browse files Browse the repository at this point in the history
Building this was just broken, I don't know for how long.
It was now caught when publishing crates, because you can't publish
with compilation errors.


error:
```
error[E0433]: failed to resolve: use of undeclared crate or module `near_client_primitives`
 --> chain/jsonrpc-primitives/src/types/status.rs:1:5
  |
1 | use near_client_primitives::debug::{
  |     ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `near_client_primitives`
```
  • Loading branch information
jakmeier authored Feb 21, 2023
1 parent a1434e4 commit 1a18003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/jsonrpc-primitives/src/types/status.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#[cfg(feature = "debug_types")]
use near_client_primitives::debug::{
DebugBlockStatusData, EpochInfoView, TrackedShardsView, ValidatorStatus,
};
#[cfg(feature = "debug_types")]
use near_primitives::views::{
CatchupStatusView, ChainProcessingInfo, NetworkGraphView, PeerStoreView,
RecentOutboundConnectionsView, RequestedStatePartsView, SyncStatusView,
Expand All @@ -12,6 +14,7 @@ pub struct RpcStatusResponse {
pub status_response: near_primitives::views::StatusResponse,
}

#[cfg(feature = "debug_types")]
#[derive(serde::Serialize, Debug)]
pub enum DebugStatusResponse {
SyncStatus(SyncStatusView),
Expand Down

0 comments on commit 1a18003

Please sign in to comment.