@@ -70,15 +70,15 @@ pub mod global {
70
70
71
71
/// Installs the exporter (HTTP server) on the default address (all interfaces, 9001)
72
72
#[ cfg( feature = "exporter" ) ]
73
- pub fn install_exporter ( ) -> Result < ( ) , Box < dyn std:: error:: Error + Send + Sync + ' static > > {
73
+ pub fn install_exporter ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
74
74
install_exporter_on ( ( IpAddr :: from ( [ 0 , 0 , 0 , 0 ] ) , DEFAULT_PORT ) )
75
75
}
76
76
77
77
/// Installs the exporter (HTTP server) on the specified address
78
78
#[ cfg( feature = "exporter" ) ]
79
79
pub fn install_exporter_on < A : ToSocketAddrs > (
80
80
addr : A ,
81
- ) -> Result < ( ) , Box < dyn std:: error:: Error + Send + Sync + ' static > > {
81
+ ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
82
82
let server = rouille:: Server :: new ( addr, move |request| {
83
83
if request. method ( ) != "GET" {
84
84
return rouille:: Response :: empty_406 ( ) ;
@@ -94,7 +94,8 @@ pub mod global {
94
94
return rouille:: Response :: html ( include_str ! ( "../ll-default-view/dist/index.html" ) ) ;
95
95
}
96
96
rouille:: Response :: empty_404 ( )
97
- } ) ?;
97
+ } )
98
+ . map_err ( |e| e. to_string ( ) ) ?;
98
99
std:: thread:: Builder :: new ( )
99
100
. name ( "exporter" . to_string ( ) )
100
101
. spawn ( move || {
0 commit comments