Commit 84de3ef
committed
Update
Our `peer_connected` methods can return `Err(())` to cause the peer
to be immediately disconnected. The documentation for them,
however, only described the specific case of using this to enforce
minimal set of per feature bits.
Instead, here, we tweak the documentation to describe the
high-level utility, and only mention enforcing peer feature bits as
an example use-case.peer_connected documentation to better describe Err(())
1 parent 1b6532a commit 84de3ef
2 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
0 commit comments