Skip to content

Commit

Permalink
Fix socket scope issues (preparing for dip1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
schveiguy committed Jan 20, 2023
1 parent d14f6a7 commit 2894f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/mysql/protocol/sockets.d
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface MySQLSocket
void close();
@property bool connected() const;
void read(ubyte[] dst);
void write(in ubyte[] bytes);
void write(const scope ubyte[] bytes);

void acquire();
void release();
Expand Down Expand Up @@ -93,7 +93,7 @@ class MySQLSocketPhobos : MySQLSocket
}
}

void write(in ubyte[] bytes)
void write(const scope ubyte[] bytes)
{
socket.send(bytes);
}
Expand Down Expand Up @@ -143,7 +143,7 @@ version(Have_vibe_core) {
socket.read(dst);
}

void write(in ubyte[] bytes)
void write(const scope ubyte[] bytes)
{
socket.write(bytes);
}
Expand Down

0 comments on commit 2894f06

Please sign in to comment.