From df786b7e1a175b58964b4b3a44b604a88eec1c60 Mon Sep 17 00:00:00 2001 From: Aditya Singh Sisodiya Date: Mon, 4 Oct 2021 11:14:00 +0530 Subject: [PATCH] fix: error formatting --- agent/batch.go | 2 +- generator/recipe.go | 2 +- go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/batch.go b/agent/batch.go index c3d61bc7e..2d87146cd 100644 --- a/agent/batch.go +++ b/agent/batch.go @@ -6,7 +6,7 @@ import ( "github.com/odpf/meteor/models" ) -// batch +// batch contains the configuration for a batch type batch struct { data []models.Record capacity int diff --git a/generator/recipe.go b/generator/recipe.go index c48150a6d..ee65f07ff 100644 --- a/generator/recipe.go +++ b/generator/recipe.go @@ -37,7 +37,7 @@ func Recipe(name string, source string, sinks []string, processors []string) (er if err != nil { return errors.Wrap(err, "failed to provide extractor information") } - tem.Source[source] = indent.String(sourceInfo.SampleConfig, size) + tem.Sinks[source] = sourceInfo.SampleConfig } if len(sinks) > 0 { tem.Sinks = make(map[string]string) diff --git a/go.mod b/go.mod index b12ea4394..47102bbe0 100644 --- a/go.mod +++ b/go.mod @@ -36,7 +36,7 @@ require ( github.com/mcuadros/go-defaults v1.2.0 github.com/mitchellh/mapstructure v1.4.1 github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect - github.com/muesli/reflow v0.3.0 + github.com/muesli/reflow v0.3.0 // indirect github.com/odpf/salt v0.0.0-20210919015538-3fd8ab22acea github.com/opencontainers/runc v1.0.1 // indirect github.com/ory/dockertest/v3 v3.7.0