Skip to content

Commit

Permalink
fix: fix no init pending
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly-Playgroud committed Dec 11, 2024
1 parent 9cecbb4 commit f43893c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/cdp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ type Client struct {
// New creates a cdp connection, all messages from Client.Event must be received or they will block the client.
func New() *Client {
return &Client{
ctx: context.Background(),
event: make(chan *Event),
logger: defaults.CDP,
ctx: context.Background(),
event: make(chan *Event),
pending: &sync.Map{},
logger: defaults.CDP,
}
}

Expand Down

0 comments on commit f43893c

Please sign in to comment.