mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add missing await
This commit is contained in:
parent
48221196be
commit
f480d224b2
1 changed files with 2 additions and 2 deletions
|
|
@ -32,9 +32,9 @@ export function getReportingServer() {
|
|||
let state = {server: null, address: ""};
|
||||
|
||||
/** @param {http.IncomingMessage} req @param {http.ServerResponse} res */
|
||||
function handleRequest(req, res) {
|
||||
async function handleRequest(req, res) {
|
||||
if (req.method === "POST" && req.url?.startsWith("/events/block")) {
|
||||
parseBlockEventFromRequest(req).then((blockEvent) => {
|
||||
await parseBlockEventFromRequest(req).then((blockEvent) => {
|
||||
emitter.emit("blockReceived", blockEvent);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue