refactor: signRegistryEntry does not need to be async

This commit is contained in:
Derrick Hammer 2023-09-01 07:51:40 -04:00
parent bda8007cdf
commit ade87a9934
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ export class RegistryService {
await this.set(sre); await this.set(sre);
} }
async signRegistryEntry({ signRegistryEntry({
kp, kp,
data, data,
revision, revision,
@ -181,7 +181,7 @@ export class RegistryService {
kp: KeyPairEd25519; kp: KeyPairEd25519;
data: Uint8Array; data: Uint8Array;
revision: number; revision: number;
}): Promise<SignedRegistryEntry> { }): SignedRegistryEntry {
const list = new Uint8Array([ const list = new Uint8Array([
recordTypeRegistryEntry, recordTypeRegistryEntry,
...encodeEndian(revision, 8), ...encodeEndian(revision, 8),