Skip to content

Commit

Permalink
minor name changes and better docs for remote
Browse files Browse the repository at this point in the history
  • Loading branch information
anthdm committed Feb 24, 2025
1 parent 725f274 commit d756758
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
type Config struct {
TLSConfig *tls.Config
BuffSize int
// Wg *sync.WaitGroup
}

// NewConfig returns a new default remote configuration.
Expand All @@ -35,9 +34,11 @@ func (c Config) WithTLS(tlsconf *tls.Config) Config {
return c
}

// Set the buffer size of the stream reader.
// If not provided, the default buffer size is 4MB
// defined by drpc package
// WithBufferSize sets the size of the maximum buffered packet
// data used by the underlying DRPC connection of the stream writer.
//
// If not provided, the default buffer size is 4MB, which is
// defined by in the DRPC package.
func (c Config) WithBufferSize(size int) Config {
c.BuffSize = size
return c
Expand Down

0 comments on commit d756758

Please sign in to comment.