Skip to content

Commit

Permalink
Updated because of type change in Revel
Browse files Browse the repository at this point in the history
  • Loading branch information
notzippy committed Sep 22, 2018
1 parent 083309b commit 8f290c0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server-engine/fasthttp/app/server-fasthttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (f *FastHTTPServer) RequestHandler(ctx *fasthttp.RequestCtx) {
f.ServerInit.Callback(context)
}

func (f *FastHTTPServer) Event(event int, args interface{}) {
func (f *FastHTTPServer) Event(event revel.Event, args interface{}) {

switch event {
case revel.ENGINE_BEFORE_INITIALIZED:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (g *GoHttpServer) Engine() interface{} {
return g.Server
}

func (g *GoHttpServer) Event(event int, args interface{}) {
func (g *GoHttpServer) Event(event revel.Event, args interface{}) {

}

Expand Down
2 changes: 1 addition & 1 deletion server-engine/newrelic/server-newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (g *ServerNewRelic) Init(init *revel.EngineInit) {
g.GoHttpServer.Init(init)
}

func (nr *ServerNewRelic) Event(event int, args interface{}) {
func (nr *ServerNewRelic) Event(event revel.Event, args interface{}) {

switch event {
case revel.ENGINE_BEFORE_INITIALIZED:
Expand Down
2 changes: 1 addition & 1 deletion template-engine/ace/app/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (engine *AceEngine) Name() string {
return ACE_TEMPLATE
}

func (engine *AceEngine) Event(action int, i interface{}) {
func (engine *AceEngine) Event(action revel.Event, i interface{}) {
if action == revel.TEMPLATE_REFRESH_REQUESTED {
engine.templatesByName = map[string]*AceTemplate{}
engine.CaseInsensitive = revel.Config.BoolDefault("ace.template.caseinsensitive", true)
Expand Down
2 changes: 1 addition & 1 deletion template-engine/pongo2/app/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (engine *PongoEngine) Lookup(templateName string) revel.Template {
}
return tpl
}
func (engine *PongoEngine) Event(action int, i interface{}) {
func (engine *PongoEngine) Event(action revel.Event, i interface{}) {
if action == revel.TEMPLATE_REFRESH_REQUESTED {
// At this point all the templates have been passed into the
engine.templateSetBybasePath = map[string]*p2.TemplateSet{}
Expand Down

0 comments on commit 8f290c0

Please sign in to comment.