Removed amqp worker command implementation

Removed Accounts Ely.by api implementation
This commit is contained in:
ErickSkrauch
2018-01-23 23:49:50 +03:00
parent f5f8fbc65e
commit 855302ec60
13 changed files with 1 additions and 1130 deletions

View File

@@ -1,11 +1,8 @@
package bootstrap
import (
"fmt"
"net/url"
"os"
"github.com/assembla/cony"
"github.com/getsentry/raven-go"
"github.com/mono83/slf/rays"
"github.com/mono83/slf/recievers/sentry"
@@ -74,17 +71,3 @@ type RabbitMQConfig struct {
Vhost string
}
func CreateRabbitMQClient(config *RabbitMQConfig) *cony.Client {
addr := fmt.Sprintf(
"amqp://%s:%s@%s:%d/%s",
config.Username,
config.Password,
config.Host,
config.Port,
url.PathEscape(config.Vhost),
)
client := cony.NewClient(cony.URL(addr), cony.Backoff(cony.DefaultBackoff))
return client
}