chore!: update to golangci-lint-action 7 (#1508)

This commit is contained in:
Kévin Dunglas
2025-04-17 20:33:22 +02:00
committed by GitHub
parent b250bd9a07
commit 8092f4a35c
14 changed files with 42 additions and 52 deletions

View File

@@ -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()