// Creates a new AddServiceCommand func NewAddServiceCommand(s msg.Service) *AddServiceCommand { s.Expires = getExpirationTime(s.TTL) return &AddServiceCommand{s} }