File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,20 @@ mod impls {
36
36
}
37
37
38
38
#[ cfg( any( feature = "async-client" , feature = "blocking-client" ) ) ]
39
- pub use gix:: protocol:: transport:: connect;
39
+ #[ gix:: protocol:: maybe_async:: maybe_async]
40
+ pub async fn connect < Url , E > (
41
+ url : Url ,
42
+ options : gix:: protocol:: transport:: client:: connect:: Options ,
43
+ ) -> Result <
44
+ gix:: protocol:: SendFlushOnDrop < Box < dyn gix:: protocol:: transport:: client:: Transport + Send > > ,
45
+ gix:: protocol:: transport:: client:: connect:: Error ,
46
+ >
47
+ where
48
+ Url : TryInto < gix_url:: Url , Error = E > ,
49
+ gix_url:: parse:: Error : From < E > ,
50
+ {
51
+ Ok ( gix:: protocol:: SendFlushOnDrop :: new (
52
+ gix:: protocol:: transport:: connect ( url, options) . await ?,
53
+ false ,
54
+ ) )
55
+ }
Original file line number Diff line number Diff line change 64
64
65
65
let agent = gix:: protocol:: agent ( gix:: env:: agent ( ) ) ;
66
66
let mut handshake = gix:: protocol:: fetch:: handshake (
67
- & mut transport,
67
+ & mut transport. inner ,
68
68
gix:: protocol:: credentials:: builtin,
69
69
vec ! [ ( "agent" . into( ) , Some ( agent. clone( ) ) ) ] ,
70
70
& mut progress,
85
85
& fetch_refspecs,
86
86
gix:: protocol:: fetch:: Context {
87
87
handshake : & mut handshake,
88
- transport : & mut transport,
88
+ transport : & mut transport. inner ,
89
89
user_agent : user_agent. clone ( ) ,
90
90
trace_packetlines,
91
91
} ,
@@ -114,7 +114,7 @@ where
114
114
& ctx. should_interrupt ,
115
115
gix:: protocol:: fetch:: Context {
116
116
handshake : & mut handshake,
117
- transport : & mut transport,
117
+ transport : & mut transport. inner ,
118
118
user_agent,
119
119
trace_packetlines,
120
120
} ,
You can’t perform that action at this time.
0 commit comments