From 0a8f91c150bbb8f960560fa3b0d85a2d9bf98650 Mon Sep 17 00:00:00 2001 From: verytrap Date: Tue, 9 Apr 2024 17:54:12 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: verytrap --- appservice/appservice.go | 2 +- federationapi/internal/perform.go | 2 +- federationapi/storage/shared/storage_edus.go | 4 ++-- federationapi/storage/shared/storage_pdus.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/appservice/appservice.go b/appservice/appservice.go index d94a483e0..a179c8b10 100644 --- a/appservice/appservice.go +++ b/appservice/appservice.go @@ -79,7 +79,7 @@ func NewInternalAPI( return appserviceQueryAPI } -// generateAppServiceAccounts creates a dummy account based off the +// generateAppServiceAccount creates a dummy account based off the // `sender_localpart` field of each application service if it doesn't // exist already func generateAppServiceAccount( diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index 0200cf69b..406e3d3e5 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -649,7 +649,7 @@ func (r *FederationInternalAPI) SendInviteV3( return inviteEvent, nil } -// PerformServersAlive implements api.FederationInternalAPI +// PerformBroadcastEDU implements api.FederationInternalAPI func (r *FederationInternalAPI) PerformBroadcastEDU( ctx context.Context, request *api.PerformBroadcastEDURequest, diff --git a/federationapi/storage/shared/storage_edus.go b/federationapi/storage/shared/storage_edus.go index e8d1d3733..102bd4b13 100644 --- a/federationapi/storage/shared/storage_edus.go +++ b/federationapi/storage/shared/storage_edus.go @@ -76,7 +76,7 @@ func (d *Database) AssociateEDUWithDestinations( }) } -// GetNextTransactionEDUs retrieves events from the database for +// GetPendingEDUs retrieves events from the database for // the next pending transaction, up to the limit specified. func (d *Database) GetPendingEDUs( ctx context.Context, @@ -166,7 +166,7 @@ func (d *Database) CleanEDUs( }) } -// GetPendingServerNames returns the server names that have EDUs +// GetPendingEDUServerNames returns the server names that have EDUs // waiting to be sent. func (d *Database) GetPendingEDUServerNames( ctx context.Context, diff --git a/federationapi/storage/shared/storage_pdus.go b/federationapi/storage/shared/storage_pdus.go index 5fabfbf20..6ccf1b721 100644 --- a/federationapi/storage/shared/storage_pdus.go +++ b/federationapi/storage/shared/storage_pdus.go @@ -145,7 +145,7 @@ func (d *Database) CleanPDUs( }) } -// GetPendingServerNames returns the server names that have PDUs +// GetPendingPDUServerNames returns the server names that have PDUs // waiting to be sent. func (d *Database) GetPendingPDUServerNames( ctx context.Context,