MCPcopy Index your code
hub / github.com/zalando/skipper / putState

Method putState

script/script.go:137–147  ·  view source on GitHub ↗
(L *lua.LState)

Source from the content-addressed store, hash-verified

135}
136
137func (s *script) putState(L *lua.LState) {
138 if s.pool == nil { // pool closed
139 L.Close()
140 return
141 }
142 select {
143 case s.pool <- L:
144 default: // pool full, close state
145 L.Close()
146 }
147}
148
149func (s *script) newState() (*lua.LState, error) {
150 L := lua.NewState(lua.Options{SkipOpenLibs: true})

Callers 2

initScriptMethod · 0.95
runFuncMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected