Fixed Backlogger method name

This commit fixes a mistake in the Backlogger interface, that is the
Backlog method was called Backlogger incorrectly.
This commit is contained in:
diamondburned 2020-10-09 10:27:38 -07:00
parent cfc0e00c8a
commit d62231a4ef
2 changed files with 5 additions and 5 deletions

View File

@ -236,12 +236,12 @@ type Author interface {
// freeze the UI until the method is cancelled. This works even when the backend // freeze the UI until the method is cancelled. This works even when the backend
// does not use the context. // does not use the context.
type Backlogger interface { type Backlogger interface {
// Backlogger fetches messages before the given message ID into the // Backlog fetches messages before the given message ID into the
// MessagesContainer. // MessagesContainer.
// //
// This method is technically a ContainerMethod, but is listed as an IOMethod // This method is technically a ContainerMethod, but is listed as an IOMethod
// because of the additional message ID parameter. // 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 // Commander is an optional interface that a session could implement for command

View File

@ -1101,14 +1101,14 @@ var Main = Packages{
IOMethod{ // technically a ContainerMethod. IOMethod{ // technically a ContainerMethod.
method: method{ method: method{
Comment: Comment{` Comment: Comment{`
Backlogger fetches messages before the given message Backlog fetches messages before the given message ID
ID into the MessagesContainer. into the MessagesContainer.
This method is technically a ContainerMethod, but is This method is technically a ContainerMethod, but is
listed as an IOMethod because of the additional listed as an IOMethod because of the additional
message ID parameter. message ID parameter.
`}, `},
Name: "Backlogger", Name: "Backlog",
}, },
Parameters: []NamedType{ Parameters: []NamedType{
{"ctx", "context.Context"}, {"ctx", "context.Context"},