Skip to content

Commit

Permalink
chore: linter fix for deprecated config option
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 11, 2024
1 parent 946298b commit d5994c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/node/libp2p/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func RelayService(enable bool, relayOpts config.RelayService) func() (opts Libp2
ReservationTTL: relayOpts.ReservationTTL.WithDefault(def.ReservationTTL),
MaxReservations: int(relayOpts.MaxReservations.WithDefault(int64(def.MaxReservations))),
MaxReservationsPerIP: int(relayOpts.MaxReservationsPerIP.WithDefault(int64(def.MaxReservationsPerIP))),
MaxReservationsPerPeer: int(relayOpts.MaxReservationsPerPeer.WithDefault(int64(def.MaxReservationsPerPeer))),
MaxReservationsPerPeer: int(relayOpts.MaxReservationsPerPeer.WithDefault(int64(def.MaxReservationsPerPeer))), // nolint
MaxReservationsPerASN: int(relayOpts.MaxReservationsPerASN.WithDefault(int64(def.MaxReservationsPerASN))),
})))
}
Expand Down
5 changes: 4 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,10 @@ Type: `optionalInteger`

Maximum number of reservations originating from the same peer.

Default: `4`
> [!WARNING]
> Deprecated since [go-libp2p#2974](https://github.com/libp2p/go-libp2p/pull/2974), might be removed in future.
Default: `1`

Type: `optionalInteger`

Expand Down

0 comments on commit d5994c1

Please sign in to comment.