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

This commit is contained in:
mergify[bot]
2024-09-13 21:18:30 +02:00
committed by GitHub
parent 21303e2780
commit 45b18a1045
4 changed files with 19 additions and 3 deletions
+9
View File
@@ -306,6 +306,15 @@ func (m AppOptionsMap) Get(key string) interface{} {
return v
}
func (m AppOptionsMap) GetString(key string) string {
v, ok := m[key]
if !ok {
return ""
}
return v.(string)
}
func NewAppOptionsWithFlagHome(homePath string) servertypes.AppOptions {
return AppOptionsMap{
flags.FlagHome: homePath,