File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ pub trait QueryUtils {
130
130
fn execute ( & self , sql : & str , params : & [ & dyn ToSql ] ) -> Fallible < usize > {
131
131
self . with_conn ( |conn| {
132
132
self . trace ( sql, || {
133
- let mut prepared = conn. prepare ( sql) ?;
133
+ let mut prepared = conn. prepare_cached ( sql) ?;
134
134
let changes = prepared. execute ( params) ?;
135
135
Ok ( changes)
136
136
} )
Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ pub fn routes(
39
39
. and ( auth_filter ( data. clone ( ) , TokenType :: Agent ) )
40
40
. map ( endpoint_config) ;
41
41
42
- // Assume agents that do not POST their capabilities to `/config` are Linux agents.
43
- let config_old = warp:: get2 ( )
44
- . and ( warp:: path ( "config" ) )
45
- . and ( warp:: path:: end ( ) )
46
- . and ( data_filter. clone ( ) )
47
- . and ( auth_filter ( data. clone ( ) , TokenType :: Agent ) )
48
- . map ( |data, auth| endpoint_config ( Capabilities :: new ( & [ "linux" ] ) , data, auth) ) ;
49
-
50
42
let next_experiment = warp:: get2 ( )
51
43
. and ( warp:: path ( "next-experiment" ) )
52
44
. and ( warp:: path:: end ( ) )
@@ -81,8 +73,6 @@ pub fn routes(
81
73
warp:: any ( )
82
74
. and (
83
75
config
84
- . or ( config_old)
85
- . unify ( )
86
76
. or ( next_experiment)
87
77
. unify ( )
88
78
. or ( record_progress)
You can’t perform that action at this time.
0 commit comments