Skip to content

Commit

Permalink
Remove dynamic import of got
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Oct 14, 2023
1 parent 37e3860 commit 5c4a732
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocols/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EventEmitter } from 'node:events'
import * as net from 'node:net'
import got from 'got'
import Reader from '../lib/reader.js'
import { debugDump } from '../lib/HexUtil.js'
import Logger from '../lib/Logger.js'
Expand Down Expand Up @@ -322,8 +323,6 @@ export default class Core extends EventEmitter {
async request (params) {
await this.tcpPing()

const got = (await import('got')).got

let requestPromise
try {
requestPromise = got({
Expand Down

0 comments on commit 5c4a732

Please sign in to comment.