Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alliballibaba2 committed Jan 27, 2025
1 parent b3fd756 commit e3d38b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
13 changes: 6 additions & 7 deletions phpmainthread.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ import (
"fmt"
"sync"

"github.com/dunglas/frankenphp/internal/phpheaders"
"github.com/dunglas/frankenphp/internal/memory"
"github.com/dunglas/frankenphp/internal/phpheaders"
"go.uber.org/zap"
)

// represents the main PHP thread
// the thread needs to keep running as long as all other threads are running
type phpMainThread struct {
state *threadState
done chan struct{}
numThreads int
maxThreads int
phpIni map[string]string
state *threadState
done chan struct{}
numThreads int
maxThreads int
phpIni map[string]string
commonHeaders map[string]*C.zend_string
knownServerKeys map[string]*C.zend_string

}

var (
Expand Down
14 changes: 7 additions & 7 deletions phpthread.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
type phpThread struct {
runtime.Pinner

threadIndex int
requestChan chan *http.Request
drainChan chan struct{}
handlerMu sync.Mutex
requestMu sync.Mutex
handler threadHandler
state *threadState
threadIndex int
requestChan chan *http.Request
drainChan chan struct{}
handlerMu sync.Mutex
requestMu sync.Mutex
handler threadHandler
state *threadState
}

// interface that defines how the callbacks from the C thread should be handled
Expand Down

0 comments on commit e3d38b5

Please sign in to comment.