Abort requests when session transactions cannot start
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -10,6 +10,9 @@ import (
|
||||
|
||||
func agreement(ctx *gin.Context) {
|
||||
ss := session.Attach(ctx)
|
||||
if ss.Done() {
|
||||
return
|
||||
}
|
||||
defer ss.FinalizeOrRollback()
|
||||
|
||||
ss.Respond(ghomeschema.AgreementResp{
|
||||
|
||||
Reference in New Issue
Block a user