[#353] Format deprecated notices properly

They should be in a separate paragraph, otherwise they are not
recognized.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2025-04-05 08:03:56 +03:00 committed by Evgenii Stratonikov
parent f158a6b2e1
commit 661adf17bb
2 changed files with 4 additions and 0 deletions

View file

@ -439,6 +439,7 @@ func (ni NodeInfo) Addresses() iter.Seq[string] {
// Breaks iteration on f's true return. // Breaks iteration on f's true return.
// //
// Handler should not be nil. // Handler should not be nil.
//
// Deprecated: use [NodeInfo.Addresses] instead. // Deprecated: use [NodeInfo.Addresses] instead.
func (ni *NodeInfo) IterateAddresses(f func(string) bool) { func (ni *NodeInfo) IterateAddresses(f func(string) bool) {
if ni != nil { if ni != nil {

View file

@ -202,6 +202,7 @@ func (x NodeInfo) NumberOfNetworkEndpoints() int {
// FrostFS system requirements. // FrostFS system requirements.
// //
// See also SetNetworkEndpoints. // See also SetNetworkEndpoints.
//
// Deprecated: use [NodeInfo.NetworkEndpoints] instead. // Deprecated: use [NodeInfo.NetworkEndpoints] instead.
func (x NodeInfo) IterateNetworkEndpoints(f func(string) bool) { func (x NodeInfo) IterateNetworkEndpoints(f func(string) bool) {
for s := range x.NetworkEndpoints() { for s := range x.NetworkEndpoints() {
@ -221,6 +222,7 @@ func (x NodeInfo) NetworkEndpoints() iter.Seq[string] {
// IterateNetworkEndpoints is an extra-sugared function over IterateNetworkEndpoints // IterateNetworkEndpoints is an extra-sugared function over IterateNetworkEndpoints
// method which allows to unconditionally iterate over all node's network endpoints. // method which allows to unconditionally iterate over all node's network endpoints.
//
// Deprecated: use [NodeInfo.NetworkEndpoints] instead. // Deprecated: use [NodeInfo.NetworkEndpoints] instead.
func IterateNetworkEndpoints(node NodeInfo, f func(string)) { func IterateNetworkEndpoints(node NodeInfo, f func(string)) {
node.IterateNetworkEndpoints(func(addr string) bool { node.IterateNetworkEndpoints(func(addr string) bool {
@ -423,6 +425,7 @@ func (x NodeInfo) Attributes() iter.Seq2[string, string] {
// IterateAttributes iterates over all node attributes and passes the into f. // IterateAttributes iterates over all node attributes and passes the into f.
// Handler MUST NOT be nil. // Handler MUST NOT be nil.
//
// Deprecated: use [NodeInfo.Attributes] instead. // Deprecated: use [NodeInfo.Attributes] instead.
func (x NodeInfo) IterateAttributes(f func(key, value string)) { func (x NodeInfo) IterateAttributes(f func(key, value string)) {
a := x.m.GetAttributes() a := x.m.GetAttributes()