Skip to content

Commit

Permalink
Remove redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
puzpuzpuz committed Aug 12, 2024
1 parent b187aa3 commit 7502ccd
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,32 +208,6 @@ type lineSenderConfig struct {
autoFlushInterval time.Duration
}

func newLineSenderConfig(t senderType) *lineSenderConfig {
switch t {
case tcpSenderType:
return &lineSenderConfig{
senderType: t,
address: defaultTcpAddress,
initBufSize: defaultInitBufferSize,
fileNameLimit: defaultFileNameLimit,
}
default:
return &lineSenderConfig{
senderType: t,
address: defaultHttpAddress,
requestTimeout: defaultRequestTimeout,
retryTimeout: defaultRetryTimeout,
minThroughput: defaultMinThroughput,
autoFlushRows: defaultAutoFlushRows,
autoFlushInterval: defaultAutoFlushInterval,
initBufSize: defaultInitBufferSize,
maxBufSize: defaultMaxBufferSize,
fileNameLimit: defaultFileNameLimit,
}
}

}

// LineSenderOption defines line sender config option.
type LineSenderOption func(*lineSenderConfig)

Expand Down

0 comments on commit 7502ccd

Please sign in to comment.