Fix node id renewal
This commit is contained in:
@@ -458,7 +458,7 @@ impl Server {
|
||||
account: directory::Account,
|
||||
remote_ip: IpAddr,
|
||||
) -> trc::Result<AccessToken> {
|
||||
let account = self.synchronize_account(account).await?;
|
||||
let account = Box::pin(self.synchronize_account(account)).await?;
|
||||
self.access_token_from_account(account.id, account.account)
|
||||
.await
|
||||
.and_then(|token| AccessToken::new(token, remote_ip))
|
||||
|
||||
@@ -115,11 +115,11 @@ impl Server {
|
||||
};
|
||||
match directory.recipient(address.as_ref()).await? {
|
||||
Recipient::Account(account) => {
|
||||
self.synchronize_account(account).await?;
|
||||
Box::pin(self.synchronize_account(account)).await?;
|
||||
return Ok(RcptResolution::Accept);
|
||||
}
|
||||
Recipient::Group(group) => {
|
||||
self.synchronize_group(group).await?;
|
||||
Box::pin(self.synchronize_group(group)).await?;
|
||||
return Ok(RcptResolution::Accept);
|
||||
}
|
||||
Recipient::Invalid => {}
|
||||
|
||||
Reference in New Issue
Block a user