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 {
7474 payload : Vec < u8 > ,
7575 ) -> Result < ( ) , Error > {
7676 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)
7881 . await
7982 . map_err ( other_error) ?;
8083 Ok ( ( ) )
@@ -99,7 +102,9 @@ impl v2::HostConnection for crate::InstanceState {
99102 value : Vec < u8 > ,
100103 ) -> Result < ( ) , Error > {
101104 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) ?;
103108 Ok ( ( ) )
104109 }
105110
You can’t perform that action at this time.
0 commit comments