mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-21 19:46:02 -04:00
fix compile errors after renaming of AllComponentsDisabledError
* rename additional calls to AllComponentsDisabledError to
AllApiHandlersDisabledError after refactoring in
66ec3765b0, found in
services/eventhistory and services/graph
This commit is contained in:
1 parent
a8ae0537e0
commit
28db2dbf31
2 files changed
+2
-2
No files matched your search
@@ -36,7 +36,7 @@ func ParseConfig(cfg *config.Config) error {
|
||||
// Validate validates the config
|
||||
func Validate(cfg *config.Config) error {
|
||||
if cfg.Events.Disabled && cfg.GRPC.Disabled {
|
||||
return shared.AllComponentsDisabledError(cfg.Service.Name)
|
||||
return shared.AllApiHandlersDisabledError(cfg.Service.Name)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -44,7 +44,7 @@ func Validate(cfg *config.Config) error {
|
||||
// as the process wouldn't be able to serve either API and would thus be
|
||||
// completely useless -- in that case, just don't start this service
|
||||
// in the first place (especially since it's optional)
|
||||
return shared.AllComponentsDisabledError("graph")
|
||||
return shared.AllApiHandlersDisabledError("graph")
|
||||
}
|
||||
|
||||
if cfg.TokenManager.JWTSecret == "" {
|
||||
|
||||
Reference in new issue
Block a user