Browse Source

Rename func

Vova Tkach 6 years ago
parent
commit
186aac2919
2 changed files with 2 additions and 2 deletions
  1. 1 1
      engine/actions/actions.go
  2. 1 1
      main.go

+ 1 - 1
engine/actions/actions.go

@@ -35,7 +35,7 @@ func New(wrapper *wrapper.Wrapper) *Action {
 	return &Action{wrapper}
 }
 
-func (this *Action) Call() bool {
+func (this *Action) Run() bool {
 	if this.wrapper.R.Method != "POST" {
 		return false
 	}

+ 1 - 1
main.go

@@ -120,7 +120,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
 		Run(func(wrapper *wrapper.Wrapper) bool {
 			// Actions
 			action := actions.New(wrapper)
-			if action.Call() {
+			if action.Run() {
 				wrapper.Session.Save()
 				return true
 			}