refactor(server): alias AppOptions to coreserver.DynamicConfig (#21711)

This commit is contained in:
Julien Robert
2024-09-13 18:51:45 +00:00
committed by GitHub
parent 7ee7c207d5
commit d54f034462
4 changed files with 19 additions and 3 deletions
+2 -3
View File
@@ -8,6 +8,7 @@ import (
cmttypes "github.com/cometbft/cometbft/types"
"github.com/cosmos/gogoproto/grpc"
"cosmossdk.io/core/server"
corestore "cosmossdk.io/core/store"
"cosmossdk.io/log"
"cosmossdk.io/store/snapshots"
@@ -26,9 +27,7 @@ type (
// literal defined on the server Context. Note, casting Get calls may not yield
// the expected types and could result in type assertion errors. It is recommend
// to either use the cast package or perform manual conversion for safety.
AppOptions interface {
Get(string) interface{}
}
AppOptions = server.DynamicConfig
// Application defines an application interface that wraps abci.Application.
// The interface defines the necessary contracts to be implemented in order