You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
`stats.bitswap` and `bitswap.stat` can be used interchangeably.
17
+
18
+
`callback` must follow `function (err, stats) {}` signature, where `err` is an error if the operation was not successful. `stats` is an Object containing the following keys:
19
+
20
+
-`provideBufLen`
21
+
-`wantlist` (array)
22
+
-`peers` (array)
23
+
-`blocksReceived`
24
+
-`dataReceived`
25
+
-`blocksSent`
26
+
-`dataSent`
27
+
-`dupBlksReceived`
28
+
-`dupDataReceived`
29
+
30
+
If no `callback` is passed, a promise is returned.
`stats.bitswap` and `bitswap.stat` can be used interchangeably. See [`bitswap.stat`](./BITSWAP.md#stat) for more details.
11
7
12
-
`callback` must follow `function (err, stats) {}` signature, where `err` is an error if the operation was not successful. `stats` is an Object containing the following keys:
13
-
14
-
-`provideBufLen`
15
-
-`wantlist` (array)
16
-
-`peers` (array)
17
-
-`blocksReceived`
18
-
-`dataReceived`
19
-
-`blocksSent`
20
-
-`dataSent`
21
-
-`dupBlksReceived`
22
-
-`dupDataReceived`
8
+
#### `repo`
23
9
24
-
If no `callback` is passed, a promise is returned.
-`options` is an object that contains following properties
92
-
-`human` a Boolean value to output `repoSize` in MiB.
93
-
94
-
`callback` must follow `function (err, stats) {}` signature, where `err` is an Error if the operation was not successful and `stats` is an object containing the following keys:
95
-
96
-
-`numObjects`
97
-
-`repoSize`
98
-
-`repoPath`
99
-
-`version`
100
-
-`storageMax`
101
-
102
-
If no `callback` is passed, a promise is returned.
0 commit comments