diff --git a/pkg/messageprocessors/javascript/javascript.go b/pkg/messageprocessors/javascript/javascript.go index 8b7c76fb1f..67091ca932 100644 --- a/pkg/messageprocessors/javascript/javascript.go +++ b/pkg/messageprocessors/javascript/javascript.go @@ -455,7 +455,7 @@ func (h *host) CompileDownlinkDecoder( }, nil } -// DecodeUplink decodes the message's FRMPayload to DecodedPayload using the given script. +// DecodeDownlink decodes the message's FRMPayload to DecodedPayload using the given script. func (h *host) DecodeDownlink( ctx context.Context, _ *ttnpb.EndDeviceIdentifiers, diff --git a/pkg/networkserver/cleanup.go b/pkg/networkserver/cleanup.go index e288b2ca15..7c5b47dacc 100644 --- a/pkg/networkserver/cleanup.go +++ b/pkg/networkserver/cleanup.go @@ -38,7 +38,7 @@ func (cleaner *RegistryCleaner) RangeToLocalSet(ctx context.Context) error { return err } -// DeleteComplement deletes registry application data of all devices in the device id list. +// DeleteDeviceData deletes registry application data of all devices in the device id list. func (cleaner *RegistryCleaner) DeleteDeviceData(ctx context.Context, devSet []string) error { for _, ids := range devSet { devIds, err := unique.ToDeviceID(ids)