chore(performance): Change *sync.RWMutex to sync.RWMutex (#2351)

This commit is contained in:
Bo-Yi Wu
2020-05-03 20:39:34 +08:00
committed by GitHub
parent 4427ca4a60
commit 2c43278080
2 changed files with 13 additions and 16 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ func Default() *Engine {
}
func (engine *Engine) allocateContext() *Context {
return &Context{engine: engine, KeysMutex: &sync.RWMutex{}}
return &Context{engine: engine}
}
// Delims sets template left and right delims and returns a Engine instance.