Skip to content

Commit

Permalink
fix for Dart-2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
a14n committed Sep 17, 2019
1 parent c86a68c commit 8e376be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ language: dart
dart:
- stable
- dev
addons:
apt:
sources:
- mongodb-3.0-precise
packages:
- mongodb-org-server
services: mongodb
before_script:
- sleep 15
Expand Down
5 changes: 2 additions & 3 deletions lib/src/network/connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ class _Connection {
Socket.connect(serverConfig.host, serverConfig.port).then((Socket _socket) {
// Socket connected.
socket = _socket;
_repliesSubscription = socket
.transform(MongoMessageHandler().transformer)
.listen(_receiveReply,
_repliesSubscription =
MongoMessageHandler().transformer.bind(socket).listen(_receiveReply,
onError: (e, st) {
_log.severe("Socket error ${e} ${st}");
//completer.completeError(e);
Expand Down

0 comments on commit 8e376be

Please sign in to comment.