Skip to content

Commit

Permalink
lint verify test
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Dec 17, 2024
1 parent 1c3d92f commit 7e69460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/capabilities/remote/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ type receiver struct {
ch chan *types.MessageBody
}

func (d *dispatcher) SetReceiver(capabilityID string, donID uint32, rec types.Receiver) error {
func (d *dispatcher) SetReceiver(capabilityId string, donID uint32, rec types.Receiver) error {

Check failure on line 107 in core/capabilities/remote/dispatcher.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: method parameter capabilityId should be capabilityID (revive)
d.mu.Lock()
defer d.mu.Unlock()
k := key{capabilityID, donID}
k := key{capabilityId, donID}
_, ok := d.receivers[k]
if ok {
return fmt.Errorf("%w: receiver already exists for capability %s and don %d", ErrReceiverExists, capabilityID, donID)
return fmt.Errorf("%w: receiver already exists for capability %s and don %d", ErrReceiverExists, capabilityId, donID)
}

receiverCh := make(chan *types.MessageBody, d.cfg.ReceiverBufferSize())
Expand All @@ -135,7 +135,7 @@ func (d *dispatcher) SetReceiver(capabilityID string, donID uint32, rec types.Re
ch: receiverCh,
}

d.lggr.Debugw("receiver set", "capabilityID", capabilityID, "donID", donID)
d.lggr.Debugw("receiver set", "capabilityID", capabilityId, "donID", donID)
return nil
}

Expand Down

0 comments on commit 7e69460

Please sign in to comment.