[#772] node: Apply gofumpt

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-10-31 14:56:55 +03:00
parent 00aa6d9749
commit 79088baa06
136 changed files with 293 additions and 239 deletions

View file

@ -16,13 +16,11 @@ func genKey(t *testing.T) *keys.PrivateKey {
}
func TestParseUpdateInnerRing(t *testing.T) {
var (
publicKeys = []*keys.PublicKey{
genKey(t).PublicKey(),
genKey(t).PublicKey(),
genKey(t).PublicKey(),
}
)
publicKeys := []*keys.PublicKey{
genKey(t).PublicKey(),
genKey(t).PublicKey(),
genKey(t).PublicKey(),
}
t.Run("wrong number of parameters", func(t *testing.T) {
prms := []stackitem.Item{

View file

@ -147,7 +147,6 @@ func TestErrorPassing(t *testing.T) {
require.ErrorIs(t, err, bErr, "invalid block error")
})
}
type testSubscriber struct {
@ -166,6 +165,7 @@ func (s *testSubscriber) UnsubscribeForNotification() {}
func (s *testSubscriber) BlockNotifications() error {
return s.blockErr
}
func (s *testSubscriber) SubscribeForNotaryRequests(mainTXSigner util.Uint160) error {
return nil
}

View file

@ -88,7 +88,6 @@ func WorkerPoolHandler(w util2.WorkerPool, h Handler, log *logger.Logger) Handle
err := w.Submit(func() {
h(e)
})
if err != nil {
log.Warn(logs.EventCouldNotSubmitHandlerToWorkerPool,
zap.String("error", err.Error()),