From d62231a4ef67449efac77a57021ce7f404ffd518 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 9 Oct 2020 10:27:38 -0700 Subject: [PATCH] Fixed Backlogger method name This commit fixes a mistake in the Backlogger interface, that is the Backlog method was called Backlogger incorrectly. --- cchat.go | 4 ++-- repository/main.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cchat.go b/cchat.go index 7060445..01a38a2 100644 --- a/cchat.go +++ b/cchat.go @@ -236,12 +236,12 @@ type Author interface { // freeze the UI until the method is cancelled. This works even when the backend // does not use the context. type Backlogger interface { - // Backlogger fetches messages before the given message ID into the + // Backlog fetches messages before the given message ID into the // MessagesContainer. // // This method is technically a ContainerMethod, but is listed as an IOMethod // because of the additional message ID parameter. - Backlogger(ctx context.Context, before ID, msgc MessagesContainer) error // Blocking + Backlog(ctx context.Context, before ID, msgc MessagesContainer) error // Blocking } // Commander is an optional interface that a session could implement for command diff --git a/repository/main.go b/repository/main.go index b8f3dcc..0fe9310 100644 --- a/repository/main.go +++ b/repository/main.go @@ -1101,14 +1101,14 @@ var Main = Packages{ IOMethod{ // technically a ContainerMethod. method: method{ Comment: Comment{` - Backlogger fetches messages before the given message - ID into the MessagesContainer. + Backlog fetches messages before the given message ID + into the MessagesContainer. This method is technically a ContainerMethod, but is listed as an IOMethod because of the additional message ID parameter. `}, - Name: "Backlogger", + Name: "Backlog", }, Parameters: []NamedType{ {"ctx", "context.Context"},