1
- use rabbitmq_stream_client:: error:: { StreamCreateError } ;
1
+ use rabbitmq_stream_client:: error:: StreamCreateError ;
2
2
use rabbitmq_stream_client:: types:: {
3
3
ByteCapacity , HashRoutingMurmurStrategy , Message , ResponseCode , RoutingStrategy ,
4
4
} ;
@@ -35,8 +35,15 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
35
35
let delete_stream = environment. delete_super_stream ( super_stream) . await ;
36
36
37
37
match delete_stream {
38
- Ok ( _) => { println ! ( "Successfully deleted super stream {}" , super_stream) ; }
39
- Err ( err) => { println ! ( "Failed to delete super stream {}. error {}" , super_stream, err) ; }
38
+ Ok ( _) => {
39
+ println ! ( "Successfully deleted super stream {}" , super_stream) ;
40
+ }
41
+ Err ( err) => {
42
+ println ! (
43
+ "Failed to delete super stream {}. error {}" ,
44
+ super_stream, err
45
+ ) ;
46
+ }
40
47
}
41
48
42
49
let create_response = environment
@@ -56,7 +63,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
56
63
}
57
64
}
58
65
}
59
- println ! ( "Super stream example. Sending {} messages to the super stream: {}" , message_count, super_stream) ;
66
+ println ! (
67
+ "Super stream example. Sending {} messages to the super stream: {}" ,
68
+ message_count, super_stream
69
+ ) ;
60
70
let mut super_stream_producer = environment
61
71
. super_stream_producer ( RoutingStrategy :: HashRoutingStrategy (
62
72
HashRoutingMurmurStrategy {
@@ -91,7 +101,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
91
101
}
92
102
93
103
notify_on_send. notified ( ) . await ;
94
- println ! ( "Successfully sent {} messages to the super stream {}" , message_count, super_stream) ;
104
+ println ! (
105
+ "Successfully sent {} messages to the super stream {}" ,
106
+ message_count, super_stream
107
+ ) ;
95
108
let _ = super_stream_producer. close ( ) . await ;
96
109
Ok ( ( ) )
97
110
}
0 commit comments