File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11
11
//! The fix for this is to account for false wakeups which is an easy fix but requires
12
12
//! a few changes to the example. I've added an explicit comment: "FIX #4", the places
13
13
//! I made a change so it's easy to spot the differences to the example code in the book.
14
+ //!
15
+ //! ## PR #19:
16
+ //! To make this example work with Docker for Mac users there is a small change
17
+ //! to the code where you can override "localhost" by passing in a command line
18
+ //! argument.
14
19
15
20
use std:: {
16
21
// FIX #4 (import `HashSet``)
@@ -84,6 +89,7 @@ fn main() -> Result<()> {
84
89
85
90
let mut streams = vec ! [ ] ;
86
91
92
+ // FIX #19: Allow to override the base URL by passing it as a command line argument
87
93
let base_url = env:: args ( )
88
94
. nth ( 1 )
89
95
. unwrap_or_else ( || String :: from ( "localhost" ) ) ;
Original file line number Diff line number Diff line change 14
14
//! a few changes to the example. I've added an explicit comment: "FIX #4", the places
15
15
//! I made a change so it's easy to spot the differences to the example code in the book.
16
16
//!
17
+ //! ## PR #19:
18
+ //! To make this example work with Docker for Mac users there is a small change
19
+ //! to the code where you can override "localhost" by passing in a command line
20
+ //! argument.
21
+ //!
17
22
//! ## TROUBLESHOOTING (KNOWN POTENTIAL ISSUE)
18
23
//!
19
24
//! ### EXAMPLE DOESN'T WORK AS EXPECTED - PROBLEM WITH DNS LOOKUP
@@ -91,6 +96,7 @@ fn main() -> Result<()> {
91
96
92
97
let mut streams = vec ! [ ] ;
93
98
99
+ // FIX #19: Allow to override the base URL by passing it as a command line argument
94
100
let base_url = env:: args ( )
95
101
. nth ( 1 )
96
102
. unwrap_or_else ( || String :: from ( "localhost" ) ) ;
You can’t perform that action at this time.
0 commit comments