File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ fn main() {
6767extern crate collections;
6868extern crate openssl;
6969extern crate serialize;
70- extern crate sync;
7170extern crate time;
7271extern crate phf;
7372#[ phase( plugin) ]
Original file line number Diff line number Diff line change 11//! A simple connection pool
22
3- use sync:: { Arc , Mutex } ;
3+ use std :: sync:: { Arc , Mutex } ;
44
55use { PostgresNotifications ,
66 PostgresConnectParams ,
Original file line number Diff line number Diff line change 11use serialize:: json;
2- use sync ;
3- use sync:: Future ;
2+ use std :: comm ;
3+ use std :: sync:: Future ;
44use time;
55use time:: Timespec ;
66use uuid:: Uuid ;
@@ -54,7 +54,7 @@ fn test_pool() {
5454 let pool = or_fail ! ( PostgresConnectionPool :: new( "postgres://postgres@localhost" ,
5555 NoSsl , 2 ) ) ;
5656
57- let ( stream1, stream2) = sync :: duplex ( ) ;
57+ let ( stream1, stream2) = comm :: duplex ( ) ;
5858
5959 let pool1 = pool. clone ( ) ;
6060 let mut fut1 = Future :: spawn ( proc ( ) {
You can’t perform that action at this time.
0 commit comments