Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Mar 12, 2024
1 parent a6f6b28 commit 6f9c28e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/providers/native/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ms from 'ms';
import createDebug from 'debug';
import { promisify } from 'util';
import { randomUUID } from 'crypto';
import { AddressInfo } from 'net';
import listen from 'async-listen';
import _treeKill from 'tree-kill';
Expand Down Expand Up @@ -76,9 +77,7 @@ export default class NativeProvider implements Provider {
const memorySize =
typeof params.MemorySize === 'number' ? params.MemorySize : 128;
const logGroupName = `aws/lambda/${functionName}`;
const logStreamName = `2019/01/12/[${version}]${crypto
.randomUUID()
.replace(/\-/g, '')}`;
const logStreamName = `2019/01/12/[${version}]${randomUUID().replace(/\-/g, '')}`;

// https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
const env = {
Expand Down
3 changes: 2 additions & 1 deletion src/runtime-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { parse } from 'url';
import { Server } from 'http';
import createDebug from 'debug';
import { run, text } from 'micro';
import { randomUUID } from 'crypto';
import createPathMatch from 'path-match';
import once from '@tootallnate/once';

Expand Down Expand Up @@ -43,7 +44,7 @@ export class RuntimeServer extends Server {
this.nextDeferred = createDeferred<void>();
this.invokeDeferred = null;
this.resultDeferred = null;
this.currentRequestId = crypto.randomUUID();
this.currentRequestId = randomUUID();
}

async serve(
Expand Down

0 comments on commit 6f9c28e

Please sign in to comment.