Go: format code (#16813)

### Summary

Aligned to EE

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-10 20:30:00 +08:00
committed by GitHub
parent 106c2d0a41
commit 0aa2993d55
27 changed files with 172 additions and 126 deletions

View File

@@ -1169,3 +1169,7 @@ func (s *Service) RemoveIngestionTasksByCondition(tasks []string, email, status
return []map[string]interface{}{element}, nil
}
func CheckLicense() (common.ErrorCode, string) {
return common.CodeLicenseValid, ""
}

View File

@@ -1677,8 +1677,9 @@ func (s *Service) HandleHeartbeat(message *common.BaseMessage) (common.ErrorCode
Timestamp: message.Timestamp,
Ext: message.Ext,
}
GlobalServerStore.UpdateServerInfo(message.ServerName, status)
return common.CodeLicenseValid, ""
return CheckLicense()
}
// InitDefaultAdmin initialize default admin user