commit | d12e94521b0e88927cb31fa3a10b068ec45d8809 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Fri May 18 22:27:25 2018 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Sat May 19 00:42:35 2018 |
tree | 364ad04d00010d487b2abae8da8a6f961f359574 | |
parent | d1fb225f76184ccb6148b5c3fb0f55ff959a7dda [diff] |
Fix a Dart 2 type error. Prepare for release.
diff --git a/lib/http_throttle.dart b/lib/http_throttle.dart index 7975234..f35f977 100644 --- a/lib/http_throttle.dart +++ b/lib/http_throttle.dart
@@ -36,8 +36,9 @@ rethrow; } - var stream = response.stream - .transform(new StreamTransformer.fromHandlers(handleDone: (sink) { + var stream = response.stream.transform( + new StreamTransformer<List<int>, List<int>>.fromHandlers( + handleDone: (sink) { resource.release(); sink.close(); }));