refactor: remove unexported fetchMessage

This commit is contained in:
James Houlahan
2020-04-17 11:46:09 +02:00
parent 1c83cc9754
commit 49a64a656c
3 changed files with 2 additions and 10 deletions

View File

@ -430,7 +430,7 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
msgLog.WithError(err).Warning("Message was not present in DB. Trying fetch...")
if msg, err = loop.store.fetchMessage(message.ID); err != nil {
if msg, err = loop.apiClient.GetMessage(message.ID); err != nil {
if err == pmapi.ErrNoSuchMessage {
msgLog.WithError(err).Warn("Skipping message update because message exists neither in local DB nor on API")
err = nil