diff --git a/cmd/hostd/run.go b/cmd/hostd/run.go index 41c445dc..433da5d6 100644 --- a/cmd/hostd/run.go +++ b/cmd/hostd/run.go @@ -205,7 +205,7 @@ func runRootCmd(ctx context.Context, cfg config.Config, walletKey types.PrivateK if err != nil { return fmt.Errorf("failed to create chain store: %w", err) } - cm := chain.NewManager(dbstore, tipState) + cm := chain.NewManager(dbstore, tipState, chain.WithLog(log.Named("chain"))) httpListener, err := startLocalhostListener(cfg.HTTP.Address, log.Named("listener")) if err != nil { diff --git a/go.mod b/go.mod index d520438f..48c16cd1 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( go.sia.tech/coreutils v0.9.0 go.sia.tech/jape v0.12.1 go.sia.tech/mux v1.3.0 - go.sia.tech/web/hostd v0.53.1 + go.sia.tech/web/hostd v0.54.0 go.uber.org/goleak v1.3.0 go.uber.org/zap v1.27.0 golang.org/x/sys v0.28.0 diff --git a/go.sum b/go.sum index feda73ca..d781742a 100644 --- a/go.sum +++ b/go.sum @@ -50,8 +50,8 @@ go.sia.tech/mux v1.3.0 h1:hgR34IEkqvfBKUJkAzGi31OADeW2y7D6Bmy/Jcbop9c= go.sia.tech/mux v1.3.0/go.mod h1:I46++RD4beqA3cW9Xm9SwXbezwPqLvHhVs9HLpDtt58= go.sia.tech/web v0.0.0-20240610131903-5611d44a533e h1:oKDz6rUExM4a4o6n/EXDppsEka2y/+/PgFOZmHWQRSI= go.sia.tech/web v0.0.0-20240610131903-5611d44a533e/go.mod h1:4nyDlycPKxTlCqvOeRO0wUfXxyzWCEE7+2BRrdNqvWk= -go.sia.tech/web/hostd v0.53.1 h1:OKS0bkrl1JEP7mmnQq3z1iJJBZDWMlBs1oxZbkuQJl4= -go.sia.tech/web/hostd v0.53.1/go.mod h1:qU1Q738uhMjYd78XoySYp5iui7qxhsncBZnJ+KfM8fw= +go.sia.tech/web/hostd v0.54.0 h1:od8MfjEfYCTlfrLaSvX+db61fPo8vmVksDvYjkKn5Q8= +go.sia.tech/web/hostd v0.54.0/go.mod h1:qU1Q738uhMjYd78XoySYp5iui7qxhsncBZnJ+KfM8fw= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= diff --git a/rhp/siamux.go b/rhp/siamux.go index 0ef15314..417e78eb 100644 --- a/rhp/siamux.go +++ b/rhp/siamux.go @@ -2,6 +2,7 @@ package rhp import ( "crypto/ed25519" + "errors" "net" rhp4 "go.sia.tech/coreutils/rhp/v4" @@ -29,7 +30,9 @@ func ServeRHP4SiaMux(l net.Listener, s *rhp4.Server, log *zap.Logger) { for { conn, err := l.Accept() if err != nil { - log.Error("failed to accept connection", zap.Error(err)) + if !errors.Is(err, net.ErrClosed) { + log.Error("failed to accept connection", zap.Error(err)) + } return } log := log.With(zap.String("peerAddress", conn.RemoteAddr().String()))