Skip to content

Commit

Permalink
replace uuid to id
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 22, 2024
1 parent e0b5195 commit a95da35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/processmanager/winsw.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"os"
"os/user"
"path/filepath"
"strconv"
"strings"

"github.com/gameap/daemon/internal/app/config"
Expand Down Expand Up @@ -292,17 +293,17 @@ func (pm *WinSW) serviceName(server *domain.Server) string {
builder.Grow(50)

builder.WriteString(servicePrefix)
builder.WriteString(server.UUID())
builder.WriteString(strconv.Itoa(server.ID()))

return builder.String()
}

func (pm *WinSW) serviceFile(server *domain.Server) string {
return filepath.Join(servicesConfigPath, server.UUID()+".xml")
return filepath.Join(servicesConfigPath, strconv.Itoa(server.ID())+".xml")
}

func (pm *WinSW) logPath(server *domain.Server) string {
return filepath.Join(servicesConfigPath, server.UUID()+".log")
return filepath.Join(servicesConfigPath, strconv.Itoa(server.ID())+".log")
}

type WinSWServiceConfig struct {
Expand Down

0 comments on commit a95da35

Please sign in to comment.