record service activate/deactivate (#10)

This commit is contained in:
Michael Quigley
2022-07-29 16:21:47 -04:00
parent 2ae1ff06c4
commit 4080e219a3
5 changed files with 59 additions and 14 deletions

View File

@ -25,6 +25,7 @@ func tunnelHandler(params tunnel.TunnelParams, principal *rest_model_zrok.Princi
logrus.Errorf("error starting transaction: %v", err)
return tunnel.NewTunnelInternalServerError().WithPayload(rest_model_zrok.ErrorMessage(err.Error()))
}
defer func() { _ = tx.Rollback() }()
edge, err := edgeClient()
if err != nil {