From 415a694228f2c60f2f3c72506cb3484bd31ef7e8 Mon Sep 17 00:00:00 2001 From: Maxim Merzhanov Date: Wed, 30 Oct 2019 11:06:03 +0300 Subject: [PATCH] remove creating empty default config --- subs/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subs/client.go b/subs/client.go index 410fc2a..292350d 100644 --- a/subs/client.go +++ b/subs/client.go @@ -108,7 +108,7 @@ func (h *socketEventHandler) handleConfigSchema(conn etp.Conn, data []byte) []by h.store.VisitReadonlyState(func(readState state.ReadonlyState) { configs = readState.Configs().GetByModuleIds([]string{module.Id}) }) - if len(configs) == 0 { + if len(configs) == 0 && len(configSchema.DefaultConfig) > 0 { config := entity.Config{ Id: state.GenerateId(), Name: module.Name,