forked from TrueCloudLab/frostfs-node
[#772] node: Apply gofumpt
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
00aa6d9749
commit
79088baa06
136 changed files with 293 additions and 239 deletions
|
@ -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{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue