File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
launchdarkly-server-sdk/src/events Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ pub struct EventsConfiguration {
2121 all_attributes_private : bool ,
2222 private_attributes : HashSet < Reference > ,
2323 omit_anonymous_contexts : bool ,
24- compress_events : bool ,
2524}
2625
2726#[ cfg( test) ]
@@ -38,7 +37,6 @@ fn create_events_configuration(
3837 all_attributes_private : false ,
3938 private_attributes : HashSet :: new ( ) ,
4039 omit_anonymous_contexts : false ,
41- compress_events : false ,
4240 }
4341}
4442
Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ where
155155 all_attributes_private : self . all_attributes_private ,
156156 private_attributes : self . private_attributes . clone ( ) ,
157157 omit_anonymous_contexts : self . omit_anonymous_contexts ,
158- compress_events : self . compress_events ,
159158 } ;
160159
161160 let events_processor =
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ pub struct HyperEventSender<C> {
4343 sdk_key : String ,
4444 http : hyper:: Client < C > ,
4545 default_headers : HashMap < & ' static str , String > ,
46+
47+ // used with compress feature
48+ #[ allow( dead_code) ]
4649 compress_events : bool ,
4750}
4851
@@ -119,6 +122,8 @@ where
119122 }
120123 } ;
121124
125+ // mut is needed for compress feature
126+ #[ allow( unused_mut) ]
122127 let mut additional_headers = self . default_headers . clone ( ) ;
123128
124129 #[ cfg( feature = "compress" ) ]
You can’t perform that action at this time.
0 commit comments