Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some docs and correct improve error print #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,16 @@ localhost:8080/api/stats/SYMBOL
![client screen shot](doc/clientss.png)
![web screen shot](doc/webss.png)
![lit screen shot](doc/litss.png)

# Common issues

## Error: `route ip+net: no such network interface`

This error is most likely caused because `got_settings` is configured by default as `multicast_intf=lo0`.

The lo0 interface is a loopback interface on Unix-based systems, but it might not be named lo0 on all systems. On Linux, it's usually named lo. On macOS and some BSD systems, it might be named lo0.

Ensure that the lo0 interface exists on your system. You can list network interfaces using:

- Linux/macOS: `ifconfig` or `ip a`
- Windows: `ipconfig /all`
2 changes: 1 addition & 1 deletion internal/exchange/marketdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func startMarketData() {
}
_intf, err := net.InterfaceByName(intf)
if err != nil {
panic("unable to read multicast interface")
panic(err)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be better as:

panic(fmt.Errorf("unable to find multicast interface %q: %w",intf,err))

}

fmt.Println("publishing marketdata at", saddr)
Expand Down