Skip to content

Commit

Permalink
run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiv committed Aug 22, 2021
1 parent 27905a4 commit 253755f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkg/sfu/datachannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ type (
// The datachannels created will be negotiated on join to all peers that joins
// the SFU.
Datachannel struct {
Label string
middlewares []func(MessageProcessor) MessageProcessor
onMessage func(ctx context.Context, args ProcessArgs)
onRemovePeer func( peer Peer )
Label string
middlewares []func(MessageProcessor) MessageProcessor
onMessage func(ctx context.Context, args ProcessArgs)
onRemovePeer func(peer Peer)
}

ProcessArgs struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sfu/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (s *Subscriber) AddDatachannel(peer Peer, dc *Datachannel) error {
})
ndc.OnClose(func() {
if dc.onRemovePeer != nil {
dc.onRemovePeer( peer )
dc.onRemovePeer(peer)
}
})

Expand Down

0 comments on commit 253755f

Please sign in to comment.