Skip to content

Commit a8ee878

Browse files
committed
clean up
1 parent 504cb6a commit a8ee878

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

src/MySQLReplication/BinLog/BinLogConnect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
$this->gtidService = $gtidService;
6060
}
6161

62-
public function disconnect()
62+
public function __destruct()
6363
{
6464
if (true === $this->isConnected())
6565
{

src/MySQLReplication/MySQLReplicationFactory.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -110,39 +110,4 @@ public function binLogEvent()
110110
{
111111
$this->event->consume();
112112
}
113-
114-
public function binLogDisconnect()
115-
{
116-
$this->binLogConnect->disconnect();
117-
echo 1;
118-
echo 1;
119-
echo 1;
120-
echo 1;
121-
echo 1;
122-
echo 1;
123-
echo 1;
124-
echo 1;
125-
echo 1;
126-
echo 1;
127-
echo 1;
128-
echo 1;
129-
echo 1;
130-
echo 1;
131-
echo 1;
132-
echo 1;
133-
echo 1;
134-
echo 1;
135-
echo 1;
136-
echo 1;
137-
echo 1;
138-
echo 1;
139-
echo 1;
140-
echo 1;
141-
echo 1;
142-
echo 1;
143-
echo 1;
144-
echo 1;
145-
echo 1;
146-
echo 1;
147-
}
148113
}

0 commit comments

Comments
 (0)