resolve conflict changes in rebase

This commit is contained in:
Niko Storni 2018-06-11 18:14:15 -04:00
parent 98a1c62eba
commit fb748cb255
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -4,6 +4,7 @@ import (
"strings" "strings"
"github.com/lbryio/lbry.go/errors" "github.com/lbryio/lbry.go/errors"
"github.com/nlopes/slack" "github.com/nlopes/slack"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
@ -18,26 +19,6 @@ func InitSlack(token string, channel string, username string) {
defaultChannel = channel defaultChannel = channel
defaultUsername = username defaultUsername = username
} }
func SendToSlackInfo(format string, a ...interface{}) {
message := format
if len(a) > 0 {
message = fmt.Sprintf(format, a...)
}
if slackApi != nil {
sendToSlack(":information_source: " + message)
}
log.Debugln(message)
}
func SendToSlackError(format string, a ...interface{}) {
message := format
if len(a) > 0 {
message = fmt.Sprintf(format, a...)
}
if slackApi != nil {
sendToSlack(":sos: " + message)
}
log.Errorln(message)
}
// SendToSlackUser Sends message to a specific user. // SendToSlackUser Sends message to a specific user.
func SendToSlackUser(user, username, message string) error { func SendToSlackUser(user, username, message string) error {
@ -67,6 +48,7 @@ func SendToSlack(message string) error {
func sendToSlack(channel, username, message string) error { func sendToSlack(channel, username, message string) error {
var err error var err error
if slackApi == nil { if slackApi == nil {
err = errors.Err("no slack token provided") err = errors.Err("no slack token provided")
} else { } else {