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:
parent
cfc0e00c8a
commit
d62231a4ef
4
cchat.go
4
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
|
||||
|
|
|
@ -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"},
|
||||
|
|
Loading…
Reference in New Issue