Apply go formatting

This commit is contained in:
Elizabeth Engelman 2019-07-10 15:30:47 -05:00
parent a577811e0a
commit 70fcc22a00
3 changed files with 10 additions and 5 deletions

View File

@ -1,13 +1,19 @@
package streamer_test package streamer_test
import ( import (
"io/ioutil"
"testing" "testing"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/sirupsen/logrus"
) )
func TestStreamer(t *testing.T) { func TestStreamer(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
RunSpecs(t, "Streamer Suite") RunSpecs(t, "Streamer Suite")
} }
var _ = BeforeSuite(func() {
logrus.SetOutput(ioutil.Discard)
})

View File

@ -96,7 +96,6 @@ func (storageWatcher StorageWatcher) getTransformer(contractAddress common.Addre
return nil, false return nil, false
} }
func (storageWatcher StorageWatcher) processRow(row utils.StorageDiffRow) { func (storageWatcher StorageWatcher) processRow(row utils.StorageDiffRow) {
storageTransformer, ok := storageWatcher.getTransformer(row.Contract) storageTransformer, ok := storageWatcher.getTransformer(row.Contract)
if !ok { if !ok {