Skip to content

Commit

Permalink
fix: 🐛 wait for 1 sec to pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Aug 12, 2024
1 parent ac61e0c commit c00dd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file-box-helper/uuidify-file-box-grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const uuidRegisterGrpc: (grpcClient: () => pbPuppet.PuppetClient) => UuidSaver =
const initRequest = new pbPuppet.UploadRequest()
request.write(initRequest)

setImmediate(() => {
setTimeout(() => {
stream
.pipe(chunkEncoder(pbPuppet.UploadRequest))
.pipe(request)
})
}, 1000)

})

Expand Down

0 comments on commit c00dd17

Please sign in to comment.