Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Nov 5, 2024
1 parent 230c2fe commit 81f3f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/split/stream_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type splitDialer struct {
var _ transport.StreamDialer = (*splitDialer)(nil)

// NewStreamDialer creates a [transport.StreamDialer] that splits the outgoing stream after writing "prefixBytes" bytes
// using [splitWriter]. If "repeatsNumber" is not 0, will split that many times, skipping "skipBytes" in between packets.
// using the split writer. You can specify multiple sequences with the [AddSplitSequence] option.
func NewStreamDialer(dialer transport.StreamDialer, prefixBytes int64, options ...Option) (transport.StreamDialer, error) {
if dialer == nil {
return nil, errors.New("argument dialer must not be nil")
Expand Down

0 comments on commit 81f3f2a

Please sign in to comment.