private Action <MessageBookmark[]> OnRevert(Endpoint endpoint)
        {
            return(bookmarksToRevert =>
            {
                queueStorage.Send(actions =>
                {
                    actions.RevertBackToSend(bookmarksToRevert);

                    actions.Commit();
                });
                queueManager.FailedToSendTo(endpoint);
            });
        }