Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into calls-api
Browse files Browse the repository at this point in the history
  • Loading branch information
winston-stripe committed Apr 6, 2023
2 parents 4cf6dc2 + b4b5a64 commit 8916469
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions socketmode/socket_mode_managed_conn.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package socketmode

import (
"bytes"
"context"
"encoding/json"
"errors"
Expand Down Expand Up @@ -469,18 +468,6 @@ func (smc *Client) receiveMessagesInto(ctx context.Context, conn *websocket.Conn
case len(event) == 0:
smc.Debugln("Received empty event")
default:
if smc.debug {
buf := &bytes.Buffer{}
d := json.NewEncoder(buf)
d.SetIndent("", " ")
if err := d.Encode(event); err != nil {
smc.Debugln("Failed encoding decoded json:", err)
}
reencoded := buf.String()

smc.Debugln("Incoming WebSocket message:", reencoded)
}

select {
case sink <- event:
case <-ctx.Done():
Expand Down

0 comments on commit 8916469

Please sign in to comment.