Skip to content

Commit

Permalink
refactor: use named import
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Nov 30, 2022
1 parent c9b6cbd commit 6be0a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lambda/handler-runner/python-runner/PythonRunner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { spawn } from 'node:child_process'
import { EOL, platform } from 'node:os'
import { delimiter, dirname, join, relative, resolve } from 'node:path'
import process, { cwd } from 'node:process'
import process, { cwd, nextTick } from 'node:process'
import { createInterface } from 'node:readline'
import { fileURLToPath } from 'node:url'
import { log } from '@serverless/utils/log.js'
Expand Down Expand Up @@ -128,7 +128,7 @@ export default class PythonRunner {
this.#handlerProcess.stdout.readline.on('line', onLine)
this.#handlerProcess.stderr.on('data', onErr)

process.nextTick(() => {
nextTick(() => {
this.#handlerProcess.stdin.write(input)
this.#handlerProcess.stdin.write('\n')
})
Expand Down

0 comments on commit 6be0a1b

Please sign in to comment.