Skip to content

Commit

Permalink
feat(NET-584): session mgmt for RAC
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceix committed Sep 19, 2023
1 parent c69b4f3 commit a1a0eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions controllers/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,13 @@ func authenticateUser(response http.ResponseWriter, request *http.Request) {
slog.Info(fmt.Sprintf("enabling ext client %s for user %s due to RAC autodisabling feature", client.ClientID, client.OwnerID))
if newClient, err := logic.ToggleExtClientConnectivity(&client, true); err != nil {
slog.Error("error disabling ext client in RAC autodisable hook", "error", err)
return
continue // dont return but try for other clients
} else {
// publish peer update to ingress gateway
if ingressNode, err := logic.GetNodeByID(newClient.IngressGatewayID); err == nil {
if err = mq.PublishPeerUpdate(); err != nil {
slog.Error("error updating ext clients on", "ingress", ingressNode.ID.String(), "err", err.Error())
}
} else {
return
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pro/remote_access_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func racAutoDisableHook() error {
slog.Info(fmt.Sprintf("disabling ext client %s for user %s due to RAC autodisabling", client.ClientID, client.OwnerID))
if err := disableExtClient(&client); err != nil {
slog.Error("error disabling ext client in RAC autodisable hook", "error", err)
return err
continue // dont return but try for other clients
}
}
}
Expand Down

0 comments on commit a1a0eca

Please sign in to comment.