Skip to content

Commit

Permalink
Merge PR #890: Minor fixes: readme & paths fetch rate limit print out
Browse files Browse the repository at this point in the history
* fix print

* update readme

* wording when hitting github limit

* punctuation
  • Loading branch information
boojamya authored Aug 3, 2022
1 parent 89d8973 commit f56b9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,15 @@ Additional information on how IBC works can be found [here](https://ibc.cosmos.n
>NOTE: Thinking of chains in the config as "source" and "destination" can be confusing. Be aware that most path are bi-directional.
<br>
`rly paths fetch` will check for the relevant `path.json` files for ALL configured chains in your config file.
The path meta-data is queried from the [interchain](https://github.com/cosmos/relayer/tree/main/interchain) directory.
`rly paths fetch` will check for IBC path meta data from the [chain-registry](https://github.com/cosmos/chain-registry/tree/master/_IBC) and add these paths to your config file.
```shell
$ rly paths fetch
```
> **NOTE:** Don't see the path metadata for paths you want to relay on?
> Please open a PR to add this metadata to the GitHub repo!

At minimum, this command will add two paths, in our case it will add one path from cosmoshub to osmosis and another path from osmosis to cosmoshub.


8. #### **Configure the channel filter.**

By default, the relayer will relay packets over all channels on a given connection.
Expand Down
2 changes: 1 addition & 1 deletion cmd/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ $ %s pth fch`, appName, defaultHome, appName)),
client, _, err := client.Repositories.DownloadContents(cmd.Context(), "cosmos", "chain-registry", regPath, nil)
if err != nil {
if errors.As(err, new(*github.RateLimitError)) {
fmt.Println("all paths were not added: %w", err)
fmt.Println("some paths failed: ", err)
break
}
fmt.Fprintf(cmd.ErrOrStderr(), "failure retrieving: %s: consider adding to cosmos/chain-registry: ERR: %v\n", pthName, err)
Expand Down

0 comments on commit f56b9b6

Please sign in to comment.