Skip to content

Commit

Permalink
Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed Nov 21, 2021
1 parent c4ecc4d commit bda2d9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
// The client sends an Expiry in the past if the client is requesting to expire the key (aka logout)
// https://github.com/tailscale/tailscale/blob/main/tailcfg/tailcfg.go#L648
if !req.Expiry.IsZero() && req.Expiry.UTC().Before(now) {
h.handleMachineLogOut(ctx, machineKey, req, *machine)
h.handleMachineLogOut(ctx, machineKey, *machine)

return
}
Expand Down Expand Up @@ -286,7 +286,6 @@ func (h *Headscale) getMapKeepAliveResponse(
func (h *Headscale) handleMachineLogOut(
ctx *gin.Context,
idKey wgkey.Key,
reqisterRequest tailcfg.RegisterRequest,
machine Machine,
) {
resp := tailcfg.RegisterResponse{}
Expand Down

0 comments on commit bda2d9c

Please sign in to comment.