mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix deprecation comments from addressing var-naming work
The deprecation tag/comment must to be followed by an empty line. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
9027014adb
commit
242f5d60a8
@ -264,11 +264,11 @@ func (reg *CheckRegistry) RootPath() string {
|
||||
}
|
||||
|
||||
// InstallHttpEndpoints installs the http handlers for the health checks.
|
||||
//
|
||||
// Deprecated: Please use (*CheckRegistry) InstallHTTPEndpoints instead.
|
||||
//
|
||||
//revive:disable:var-naming
|
||||
//revive:disable-next-line:var-naming
|
||||
func (reg *CheckRegistry) InstallHttpEndpoints(lg *zap.Logger, mux *http.ServeMux) {
|
||||
//revive:enable:var-naming
|
||||
reg.InstallHTTPEndpoints(lg, mux)
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@ func ToSnapDir(dataDir string) string {
|
||||
}
|
||||
|
||||
// ToWalDir returns the directory path for the member's WAL.
|
||||
//
|
||||
// Deprecated: use ToWALDir instead.
|
||||
//
|
||||
//revive:disable-next-line:var-naming
|
||||
|
@ -111,6 +111,7 @@ func CreateConfigChangeEnts(lg *zap.Logger, ids []uint64, self uint64, term, ind
|
||||
|
||||
// GetEffectiveNodeIdsFromWalEntries returns an ordered set of IDs included in the given snapshot and
|
||||
// the entries.
|
||||
//
|
||||
// Deprecated: use GetEffectiveNodeIDsFromWALEntries instead.
|
||||
//
|
||||
//revive:disable-next-line:var-naming
|
||||
|
Loading…
x
Reference in New Issue
Block a user