register fix

This commit is contained in:
Piotr Biernat 2022-12-01 19:54:59 +01:00
parent 6c46a0e6a4
commit 48a7e968d1

View File

@ -26,7 +26,7 @@ var ErrServiceUnavailable = fmt.Errorf("Service is unavailable")
func NewService(serverAddr, appID, appName, ip, domain string, appPort int) (*Service, error) {
s := new(Service)
s.AppID = appID
s.Name = strings.Replace(appName, "-", "_", -1)
s.Name = strings.Replace(appName, "-", "", -1)
s.Address = domain
s.IP = ip
s.Port = appPort