From 94ecb2d33e92452a034f147c98c8fe24fe064946 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Thu, 8 Oct 2026 17:30:44 +0200 Subject: [PATCH] eoswrapper: return the EOS error instead of panicking New asserted the FS type before checking the error, so an EOS that could not be set up at startup (e.g. its gRPC endpoint refusing connections) crashed revad instead of failing the storage provider. --- storage/eoswrapper/eoswrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/eoswrapper/eoswrapper.go b/storage/eoswrapper/eoswrapper.go index a284c33..41f80ea 100644 --- a/storage/eoswrapper/eoswrapper.go +++ b/storage/eoswrapper/eoswrapper.go @@ -106,10 +106,10 @@ func New(ctx context.Context, m map[string]interface{}) (storage.FS, error) { } eosFs, err := eosfs.NewEOSFS(ctx, &c) - eos := eosFs.(*eosfs.Eosfs) if err != nil { return nil, err } + eos := eosFs.(*eosfs.Eosfs) mountIDTemplate, err := template.New("mountID").Funcs(sprig.TxtFuncMap()).Parse(t) if err != nil {