Skip to content

Commit b1d7966

Browse files
committed
nit: remove unused parameter
Signed-off-by: “Kevin” <kevlar_ksb@yahoo.com>
1 parent 42abf17 commit b1d7966

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

new_samples/data/worker.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func StartWorker() {
3737
dataConverter := NewCompressedJSONDataConverter()
3838

3939
// Show compression statistics on startup
40-
printCompressionStats(dataConverter)
40+
printCompressionStats()
4141

4242
workerOptions := worker.Options{
4343
Logger: logger,
@@ -63,9 +63,7 @@ func StartWorker() {
6363
}
6464

6565
// printCompressionStats displays compression statistics for the sample payload
66-
func printCompressionStats(converter interface {
67-
ToData(value ...interface{}) ([]byte, error)
68-
}) {
66+
func printCompressionStats() {
6967
largePayload := CreateLargePayload()
7068
originalSize, compressedSize, compressionPercentage, err := GetPayloadSizeInfo(largePayload, NewCompressedJSONDataConverter())
7169
if err != nil {

0 commit comments

Comments
 (0)