forked from cerc-io/ipld-eth-server
Apply go formatting
This commit is contained in:
parent
a577811e0a
commit
70fcc22a00
@ -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)
|
||||||
|
})
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user