fix: remove unneeded import
This commit is contained in:
parent
71f4d3ce1c
commit
a3669fb403
|
@ -9,7 +9,6 @@ import {
|
||||||
setupStream,
|
setupStream,
|
||||||
validateTimestampedResponse,
|
validateTimestampedResponse,
|
||||||
} from "../util.js";
|
} from "../util.js";
|
||||||
import RPC from "@lumeweb/rpc";
|
|
||||||
import { ERR_INVALID_SIGNATURE } from "../error.js";
|
import { ERR_INVALID_SIGNATURE } from "../error.js";
|
||||||
import RpcQueryBase from "./base.js";
|
import RpcQueryBase from "./base.js";
|
||||||
|
|
||||||
|
@ -67,7 +66,7 @@ export default class SimpleRpcQuery extends RpcQueryBase {
|
||||||
if (!socket) {
|
if (!socket) {
|
||||||
socket = this._network.getAvailableRelay(
|
socket = this._network.getAvailableRelay(
|
||||||
this._query.module,
|
this._query.module,
|
||||||
this._query.method
|
this._query.method,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,9 +108,9 @@ export default class SimpleRpcQuery extends RpcQueryBase {
|
||||||
!validateTimestampedResponse(
|
!validateTimestampedResponse(
|
||||||
b4a.from(
|
b4a.from(
|
||||||
await maybeGetAsyncProperty(this._relay.remotePublicKey),
|
await maybeGetAsyncProperty(this._relay.remotePublicKey),
|
||||||
"hex"
|
"hex",
|
||||||
) as Buffer,
|
) as Buffer,
|
||||||
response
|
response,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
response = { error: ERR_INVALID_SIGNATURE };
|
response = { error: ERR_INVALID_SIGNATURE };
|
||||||
|
|
Loading…
Reference in New Issue