mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
chore!: update to golangci-lint-action 7 (#1508)
This commit is contained in:
@@ -107,7 +107,7 @@ func drainPHPThreads() {
|
||||
|
||||
func (mainThread *phpMainThread) start() error {
|
||||
if C.frankenphp_new_main_thread(C.int(mainThread.numThreads)) != 0 {
|
||||
return MainThreadCreationError
|
||||
return ErrMainThreadCreation
|
||||
}
|
||||
|
||||
mainThread.state.waitFor(stateReady)
|
||||
@@ -144,15 +144,6 @@ func getInactivePHPThread() *phpThread {
|
||||
return nil
|
||||
}
|
||||
|
||||
func getPHPThreadAtState(state stateID) *phpThread {
|
||||
for _, thread := range phpThreads {
|
||||
if thread.state.is(state) {
|
||||
return thread
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//export go_frankenphp_main_thread_is_ready
|
||||
func go_frankenphp_main_thread_is_ready() {
|
||||
mainThread.setAutomaticMaxThreads()
|
||||
|
||||
Reference in New Issue
Block a user