From 83fcbbbebfe35492de992ba7de595363804c1a5e Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Wed, 14 Aug 2024 16:06:19 +0200 Subject: [PATCH] node: fix build --- internal/node/node.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/node/node.go b/internal/node/node.go index 504d5937b..267e4b8e8 100644 --- a/internal/node/node.go +++ b/internal/node/node.go @@ -81,7 +81,7 @@ func NewBus(cfg BusConfig, dir string, seed types.PrivateKey, logger *zap.Logger cfg.Database.MySQL.Database, ) if err != nil { - return nil, nil, nil, nil, nil, fmt.Errorf("failed to open MySQL main database: %w", err) + return nil, nil, nil, fmt.Errorf("failed to open MySQL main database: %w", err) } connMetrics, err := mysql.Open( cfg.Database.MySQL.User, @@ -94,7 +94,7 @@ func NewBus(cfg BusConfig, dir string, seed types.PrivateKey, logger *zap.Logger } dbMain, err = mysql.NewMainDatabase(connMain, logger.Named("main").Sugar(), cfg.DatabaseLog.SlowThreshold, cfg.DatabaseLog.SlowThreshold) if err != nil { - return nil, nil, nil, nil, nil, fmt.Errorf("failed to create MySQL main database: %w", err) + return nil, nil, nil, fmt.Errorf("failed to create MySQL main database: %w", err) } dbMetrics, err = mysql.NewMetricsDatabase(connMetrics, logger.Named("metrics").Sugar(), cfg.DatabaseLog.SlowThreshold, cfg.DatabaseLog.SlowThreshold) if err != nil { @@ -110,11 +110,11 @@ func NewBus(cfg BusConfig, dir string, seed types.PrivateKey, logger *zap.Logger // create SQLite connections db, err := sqlite.Open(filepath.Join(dbDir, "db.sqlite")) if err != nil { - return nil, nil, nil, nil, nil, fmt.Errorf("failed to open SQLite main database: %w", err) + return nil, nil, nil, fmt.Errorf("failed to open SQLite main database: %w", err) } dbMain, err = sqlite.NewMainDatabase(db, logger.Named("main").Sugar(), cfg.DatabaseLog.SlowThreshold, cfg.DatabaseLog.SlowThreshold) if err != nil { - return nil, nil, nil, nil, nil, fmt.Errorf("failed to create SQLite main database: %w", err) + return nil, nil, nil, fmt.Errorf("failed to create SQLite main database: %w", err) } dbm, err := sqlite.Open(filepath.Join(dbDir, "metrics.sqlite"))