File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
crates/factor-outbound-redis/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ impl v2::HostConnection for crate::InstanceState {
74
74
payload : Vec < u8 > ,
75
75
) -> Result < ( ) , Error > {
76
76
let conn = self . get_conn ( connection) . await . map_err ( other_error) ?;
77
- conn. publish ( & channel, & payload)
77
+ // The `let () =` syntax is needed to suppress a warning when the result type is inferred.
78
+ // You can read more about the issue here: <https://github.com/redis-rs/redis-rs/issues/1228>
79
+ let ( ) = conn
80
+ . publish ( & channel, & payload)
78
81
. await
79
82
. map_err ( other_error) ?;
80
83
Ok ( ( ) )
@@ -99,7 +102,9 @@ impl v2::HostConnection for crate::InstanceState {
99
102
value : Vec < u8 > ,
100
103
) -> Result < ( ) , Error > {
101
104
let conn = self . get_conn ( connection) . await . map_err ( other_error) ?;
102
- conn. set ( & key, & value) . await . map_err ( other_error) ?;
105
+ // The `let () =` syntax is needed to suppress a warning when the result type is inferred.
106
+ // You can read more about the issue here: <https://github.com/redis-rs/redis-rs/issues/1228>
107
+ let ( ) = conn. set ( & key, & value) . await . map_err ( other_error) ?;
103
108
Ok ( ( ) )
104
109
}
105
110
You can’t perform that action at this time.
0 commit comments