Skip to content

Commit

Permalink
Remove parameter for frame socket header
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 29, 2024
1 parent 0bb4134 commit ca47a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (cli *Client) Connect() error {
}

cli.resetExpectedDisconnect()
fs := socket.NewFrameSocket(cli.Log.Sub("Socket"), socket.WAConnHeader, cli.proxy)
fs := socket.NewFrameSocket(cli.Log.Sub("Socket"), cli.proxy)
if err := fs.Connect(); err != nil {
fs.Close(0)
return err
Expand Down
4 changes: 2 additions & 2 deletions socket/framesocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ type FrameSocket struct {
partialHeader []byte
}

func NewFrameSocket(log waLog.Logger, header []byte, proxy Proxy) *FrameSocket {
func NewFrameSocket(log waLog.Logger, proxy Proxy) *FrameSocket {
return &FrameSocket{
conn: nil,
log: log,
Header: header,
Header: WAConnHeader,
Frames: make(chan []byte),

Proxy: proxy,
Expand Down

0 comments on commit ca47a55

Please sign in to comment.