parameter 'replica' seems to be unused, consider removing or renaming it as _
493 result []*payload.Object_Distance
494}
495
496func newPairingHeap(num, replica int) Aggregator {497 return &valdPairingHeapAggr{
498 num: num,
499 ph: new(PairingHeap),
parameter 'ctx' seems to be unused, consider removing or renaming it as _
256}
257
258// Range calls f sequentially for each key and value present in the vqueue.
259func (v *vqueue) Range(ctx context.Context, f func(uuid string, vector []float32, ts int64) bool) {260 v.il.Range(func(uuid string, idx *index) bool {
261 if idx == nil {
262 return true
parameter 'address' seems to be unused, consider removing or renaming it as _
96 return ctrl.controlFunc
97}
98
99func (ctrl *control) controlFunc(network, address string, c syscall.RawConn) (err error) {100 return c.Control(func(fd uintptr) {
101 f := int(fd)
102 var ierr error
Description
Unused parameters in functions or methods should be replaced with _
(underscore) or removed.
Functions or methods with unused parameters can be a symptom of unfinished
refactoring or a bug. If an unused parameter is present, it should be named _
(underscore) to avoid raising this issue and better readability.
Bad practice
func abc(unused string) {
fmt.Println("Not using any passed params.")
}
Recommended
func abc(_ string) {
fmt.Println("Not using any passed params.")
}
func abc() {
fmt.Println("Not using any passed params.")
}