Skip to content

Commit

Permalink
Add depreciation warning (#3310)
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinlesceller authored Apr 28, 2020
1 parent be4779c commit 061bf3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ fn response<T: Into<Body>>(status: StatusCode, text: T) -> Response<Body> {
}

// Legacy V1 router
#[deprecated(
since = "4.0.0",
note = "The V1 Node API will be removed in grin 5.0.0. Please migrate to the V2 API as soon as possible."
)]
pub fn build_router(
chain: Arc<chain::Chain>,
tx_pool: Arc<RwLock<pool::TransactionPool>>,
Expand Down

0 comments on commit 061bf3d

Please sign in to comment.