File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ declare_attrs! {
52
52
pub attr REMOTE_ALLOCATOR_HEARTBEAT_INTERVAL : Duration = Duration :: from_secs( 5 ) ;
53
53
54
54
/// The default encoding to be used.
55
- pub attr DEFAULT_ENCODING : Encoding = Encoding :: Bincode ;
55
+ pub attr DEFAULT_ENCODING : Encoding = Encoding :: Multipart ;
56
56
57
57
/// Whether to use multipart encoding for network channel communications.
58
- pub attr CHANNEL_MULTIPART : bool = false ;
58
+ pub attr CHANNEL_MULTIPART : bool = true ;
59
59
60
60
/// How often to check for full MSPC channel on NetRx.
61
61
pub attr CHANNEL_NET_RX_BUFFER_FULL_CHECK_INTERVAL : Duration = Duration :: from_secs( 5 ) ;
Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ mod tests {
777
777
let serialized = Serialized :: serialize ( & data) . unwrap ( ) ;
778
778
let serialized_json = serialized. clone ( ) . transcode_to_json ( ) . unwrap ( ) ;
779
779
780
- assert ! ( serialized. encoded. is_bincode ( ) ) ;
780
+ assert ! ( serialized. encoded. is_multipart ( ) ) ;
781
781
assert ! ( serialized_json. encoded. is_json( ) ) ;
782
782
783
783
let json_string =
@@ -816,6 +816,8 @@ mod tests {
816
816
817
817
#[ test]
818
818
fn test_emplace_prefix ( ) {
819
+ let config = config:: global:: lock ( ) ;
820
+ let _guard = config. override_key ( config:: DEFAULT_ENCODING , Encoding :: Bincode ) ;
819
821
let data = TestDumpStruct {
820
822
a : "hello" . to_string ( ) ,
821
823
b : 1234 ,
Original file line number Diff line number Diff line change @@ -683,6 +683,7 @@ mod tests {
683
683
use hyperactor:: ProcId ;
684
684
use hyperactor:: WorldId ;
685
685
use hyperactor:: attrs:: Attrs ;
686
+ use hyperactor:: data:: Encoding ;
686
687
use timed_test:: async_timed_test;
687
688
688
689
use super :: * ;
@@ -1328,6 +1329,9 @@ mod tests {
1328
1329
unsafe {
1329
1330
std:: env:: set_var ( "HYPERACTOR_CODEC_MAX_FRAME_LENGTH" , "1024" ) ;
1330
1331
} ;
1332
+ let _guard3 =
1333
+ config. override_key ( hyperactor:: config:: DEFAULT_ENCODING , Encoding :: Bincode ) ;
1334
+ let _guard4 = config. override_key ( hyperactor:: config:: CHANNEL_MULTIPART , false ) ;
1331
1335
1332
1336
let alloc = process_allocator ( )
1333
1337
. allocate ( AllocSpec {
You can’t perform that action at this time.
0 commit comments