Skip to content

Commit

Permalink
✏️ 优化control
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Sep 9, 2021
1 parent 94abf34 commit 6e0b754
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions control/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

func Register(service string, o *Options) *zero.Engine {
engine := zero.New()
m := *New(service, o)
engine.UsePreHandler(m.Handler())
engine.UsePreHandler(New(service, o).Handler())
return engine
}

0 comments on commit 6e0b754

Please sign in to comment.