Skip to content

Commit 351b8a7

Browse files
docs: apply suggestions from code review
Co-authored-by: Guillaume Michel <[email protected]>
1 parent 0a3d8e3 commit 351b8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routing/http-routing-v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Each object in the `Providers` list is a record conforming to a schema, usually
116116

117117
- `closerThan` is an optional [Peer ID](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md) represented as a CIDv1 encoded with `libp2p-key` codec.
118118
- Returned peer records must be closer to `peer-id` than `closerThan`.
119-
- If omitted the routing implementation should use it's own [Peer ID](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md).
119+
- If omitted the routing implementation should use its own [Peer ID](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md).
120120
- `count` is an optional number that specifies how many peer records the requester desires.
121121
- Minimum 1, maximum 100, default 20.
122122

@@ -134,7 +134,7 @@ Each object in the `Providers` list is a record conforming to a schema, usually
134134
- When present, `ttl` SHOULD be shorter for responses whose resolution ended in no results (e.g. 15 seconds),
135135
and longer for responses that have results (e.g. 5 minutes).
136136
- Implementations SHOULD include `max-ttl`, set to the maximum cache window of the underlying routing system.
137-
For example, if Amino DHT results are returned, `stale-while-revalidate` SHOULD be set to `172800` (48h, which at the time of writing this specification, is the provider record expiration window).
137+
For example, if Amino DHT results are returned, `stale-while-revalidate` SHOULD be set to `79200` (22h, which at the time of writing this specification, is the [Provider Record Republish Interval](https://github.com/libp2p/specs/tree/master/kad-dht#content-provider-advertisement-and-discovery)).
138138
- `Vary: Accept`: allows intermediate caches to play nicely with the different possible content types.
139139

140140
#### Response Body

0 commit comments

Comments
 (0)