Compare commits
No commits in common. "v1.0.3" and "master" have entirely different histories.
|
@ -52,7 +52,6 @@ func (a *Account) Receive() {
|
||||||
panic("channel closed")
|
panic("channel closed")
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infoln("pushing message")
|
|
||||||
a.Push(m)
|
a.Push(m)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,6 @@ func (svc *Service) QueueMessage(ctx context.Context, msg *pb.Message) (*pb.Resp
|
||||||
if stream == "" {
|
if stream == "" {
|
||||||
acct = svc.Default
|
acct = svc.Default
|
||||||
} else if acct, ok = svc.Accounts[stream]; !ok {
|
} else if acct, ok = svc.Accounts[stream]; !ok {
|
||||||
log.Errf("invalid stream name '%s' in message", stream)
|
|
||||||
return &pb.Response{
|
return &pb.Response{
|
||||||
Timestamp: time.Now().Unix(),
|
Timestamp: time.Now().Unix(),
|
||||||
Id: uuid.NewString(),
|
Id: uuid.NewString(),
|
||||||
|
@ -46,7 +45,7 @@ func (svc *Service) QueueMessage(ctx context.Context, msg *pb.Message) (*pb.Resp
|
||||||
|
|
||||||
qmsg := core.NewMessage(msg)
|
qmsg := core.NewMessage(msg)
|
||||||
if qmsg == nil {
|
if qmsg == nil {
|
||||||
log.Errln("server: invalid message received, dropping")
|
log.Err("server: invalid message received, dropping")
|
||||||
return &pb.Response{
|
return &pb.Response{
|
||||||
Timestamp: time.Now().Unix(),
|
Timestamp: time.Now().Unix(),
|
||||||
Id: uuid.NewString(),
|
Id: uuid.NewString(),
|
||||||
|
|
Loading…
Reference in New Issue