Skip to content

Commit cfc7281

Browse files
committed
style: fix gofumpt formatting
1 parent 2500704 commit cfc7281

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

cmd/iwdp-mcp/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020

2121
// session holds the active WebKit client and collectors.
2222
type session struct {
23-
mu sync.Mutex
24-
client *webkit.Client
25-
networkMonitor *tools.NetworkMonitor
26-
consoleCollector *tools.ConsoleCollector
27-
timelineCollector *tools.TimelineCollector
28-
interceptionCollector *tools.InterceptionCollector
23+
mu sync.Mutex
24+
client *webkit.Client
25+
networkMonitor *tools.NetworkMonitor
26+
consoleCollector *tools.ConsoleCollector
27+
timelineCollector *tools.TimelineCollector
28+
interceptionCollector *tools.InterceptionCollector
2929
}
3030

3131
var sess session

internal/tools/network.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ func SetExtraHeaders(ctx context.Context, client *webkit.Client, headers map[str
163163

164164
// InterceptedRequest holds an intercepted request waiting for a continue/response decision.
165165
type InterceptedRequest struct {
166-
RequestID string `json:"request_id"`
166+
RequestID string `json:"request_id"`
167167
Request webkit.NetworkRequest `json:"request"`
168168
}
169169

170170
// InterceptionCollector collects Network.requestIntercepted events.
171171
type InterceptionCollector struct {
172-
mu sync.Mutex
173-
pending map[string]*InterceptedRequest
174-
started bool
172+
mu sync.Mutex
173+
pending map[string]*InterceptedRequest
174+
started bool
175175
}
176176

177177
// NewInterceptionCollector creates a new InterceptionCollector.
@@ -203,7 +203,7 @@ func (ic *InterceptionCollector) Start(ctx context.Context, client *webkit.Clien
203203

204204
client.OnEvent("Network.requestIntercepted", func(method string, params json.RawMessage) {
205205
var evt struct {
206-
RequestID string `json:"requestId"`
206+
RequestID string `json:"requestId"`
207207
Request webkit.NetworkRequest `json:"request"`
208208
}
209209
if err := json.Unmarshal(params, &evt); err != nil {

0 commit comments

Comments
 (0)