mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Use new gmsl to use new String() API
This commit is contained in:
parent
9e9617ff84
commit
b00e272e6f
7 changed files with 11 additions and 13 deletions
|
@ -101,11 +101,11 @@ func (r *RelayInternalAPI) QueryTransactions(
|
|||
userID spec.UserID,
|
||||
previousEntry fclient.RelayEntry,
|
||||
) (api.QueryRelayTransactionsResponse, error) {
|
||||
logrus.Infof("QueryTransactions for %s", userID.Raw())
|
||||
logrus.Infof("QueryTransactions for %s", userID.String())
|
||||
if previousEntry.EntryID > 0 {
|
||||
logrus.Infof("Cleaning previous entry (%v) from db for %s",
|
||||
previousEntry.EntryID,
|
||||
userID.Raw(),
|
||||
userID.String(),
|
||||
)
|
||||
prevReceipt := receipt.NewReceipt(previousEntry.EntryID)
|
||||
err := r.db.CleanTransactions(ctx, userID, []*receipt.Receipt{&prevReceipt})
|
||||
|
@ -123,12 +123,12 @@ func (r *RelayInternalAPI) QueryTransactions(
|
|||
|
||||
response := api.QueryRelayTransactionsResponse{}
|
||||
if transaction != nil && receipt != nil {
|
||||
logrus.Infof("Obtained transaction (%v) for %s", transaction.TransactionID, userID.Raw())
|
||||
logrus.Infof("Obtained transaction (%v) for %s", transaction.TransactionID, userID.String())
|
||||
response.Transaction = *transaction
|
||||
response.EntryID = receipt.GetNID()
|
||||
response.EntriesQueued = true
|
||||
} else {
|
||||
logrus.Infof("No more entries in the queue for %s", userID.Raw())
|
||||
logrus.Infof("No more entries in the queue for %s", userID.String())
|
||||
response.EntryID = 0
|
||||
response.EntriesQueued = false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue