Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Apr 14, 2022
1 parent 7509ded commit c3d56fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action_paymails.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ func (c *Client) GetPaymailAddress(ctx context.Context, address string, opts ...
return paymailAddress, nil
}

// GetPaymailAddresses will get all the paymails from the Datastore
// GetPaymailAddresses will get all the paymail addresses from the Datastore
func (c *Client) GetPaymailAddresses(ctx context.Context, metadataConditions *Metadata,
conditions *map[string]interface{}, pageSize, page int) ([]*PaymailAddress, error) {

// Check for existing NewRelic transaction
ctx = c.GetOrStartTxn(ctx, "get_transaction")

// Get the transaction by ID
// Get the paymail address
// todo: add params for: page size and page (right now it is unlimited)
paymailAddresses, err := getPaymails(
ctx, metadataConditions, conditions, pageSize, page,
Expand All @@ -44,7 +44,7 @@ func (c *Client) GetPaymailAddresses(ctx context.Context, metadataConditions *Me
return paymailAddresses, nil
}

// GetPaymailAddressesByXPubID will get all the paymails for xPubID from the Datastore
// GetPaymailAddressesByXPubID will get all the paymail addresses for an xPubID from the Datastore
func (c *Client) GetPaymailAddressesByXPubID(ctx context.Context, xPubID string,
metadataConditions *Metadata, conditions *map[string]interface{}, pageSize, page int) ([]*PaymailAddress, error) {

Expand All @@ -57,7 +57,7 @@ func (c *Client) GetPaymailAddressesByXPubID(ctx context.Context, xPubID string,
// add the xpub_id to the conditions
(*conditions)["xpub_id"] = xPubID

// Get the transaction by ID
// Get the paymail address
// todo: add params for: page size and page (right now it is unlimited)
paymailAddresses, err := getPaymails(
ctx, metadataConditions, conditions, pageSize, page,
Expand Down

0 comments on commit c3d56fd

Please sign in to comment.