Skip to content

Commit 7502ccd

Browse files
committed
Remove redundant method
1 parent b187aa3 commit 7502ccd

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

sender.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -208,32 +208,6 @@ type lineSenderConfig struct {
208208
autoFlushInterval time.Duration
209209
}
210210

211-
func newLineSenderConfig(t senderType) *lineSenderConfig {
212-
switch t {
213-
case tcpSenderType:
214-
return &lineSenderConfig{
215-
senderType: t,
216-
address: defaultTcpAddress,
217-
initBufSize: defaultInitBufferSize,
218-
fileNameLimit: defaultFileNameLimit,
219-
}
220-
default:
221-
return &lineSenderConfig{
222-
senderType: t,
223-
address: defaultHttpAddress,
224-
requestTimeout: defaultRequestTimeout,
225-
retryTimeout: defaultRetryTimeout,
226-
minThroughput: defaultMinThroughput,
227-
autoFlushRows: defaultAutoFlushRows,
228-
autoFlushInterval: defaultAutoFlushInterval,
229-
initBufSize: defaultInitBufferSize,
230-
maxBufSize: defaultMaxBufferSize,
231-
fileNameLimit: defaultFileNameLimit,
232-
}
233-
}
234-
235-
}
236-
237211
// LineSenderOption defines line sender config option.
238212
type LineSenderOption func(*lineSenderConfig)
239213

0 commit comments

Comments
 (0)