Skip to content

Commit

Permalink
dont enter/exit here is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Dec 28, 2024
1 parent bf7a7ca commit af4ea94
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/s3.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,7 @@ pub const AWSCredentials = struct {
if (this.readable_stream_ref.get()) |readable| {
if (readable.ptr == .Bytes) {
const globalThis = this.readable_stream_ref.globalThis().?;
const event_loop = globalThis.bunVM().eventLoop();
event_loop.enter();
defer event_loop.exit();

if (request_err) |err| {
readable.ptr.Bytes.onData(
.{
Expand Down Expand Up @@ -1401,9 +1399,6 @@ pub const AWSCredentials = struct {
defer self.deref();

if (sink.endPromise.globalObject()) |globalObject| {
const event_loop = globalObject.bunVM().eventLoop();
event_loop.enter();
defer event_loop.exit();
switch (result) {
.success => sink.endPromise.resolve(globalObject, JSC.jsNumber(0)),
.failure => |err| {
Expand Down

0 comments on commit af4ea94

Please sign in to comment.