collection of typo fixes (#10647)
(cherry picked from commit 942542111447bbc076c9d20bc11ddb17fb410ea0)
Andrew Gillis committed
Dec 29, 2024 at 19:27 UTC
53792003bdcdf7c6bdb87006359427b3255fdcc4
12 files changed
+26
-27
core/commands/files.go
+1
-1
@@ -68,7 +68,7 @@ of consistency guarantees and unbound growth of the directories' in-memory
68
caches. If the daemon is unexpectedly killed before running 'ipfs files
69
flush' on the files in question, then data may be lost. This also applies to
70
run 'ipfs repo gc' concurrently with '--flush=false' operations. We recommend
71
-flushing paths reguarly with 'ipfs files flush', specially the folders on
71
+flushing paths regularly with 'ipfs files flush', specially the folders on
72
which many write operations are happening, as a way to clear the directory
73
cache, free memory and speed up read operations.`,
74
},
core/commands/stat.go
+1
-1
@@ -56,7 +56,7 @@ to a particular peer, use the 'peer' option along with that peer's multihash
56
id. To specify a specific protocol, use the 'proto' option. The 'peer' and
57
'proto' options cannot be specified simultaneously. The protocols that are
58
queried using this method are outlined in the specification:
59
-https://github.com/libp2p/specs/blob/master/7-properties.md#757-protocol-multicodecs
59
+https://github.com/libp2p/specs/blob/master/_archive/7-properties.md#757-protocol-multicodecs
60
61
Example protocol options:
62
- /ipfs/id/1.0.0
core/coreiface/unixfs.go
+1
-1
@@ -105,7 +105,7 @@ type UnixfsAPI interface {
105
// Iteration stops if the context is canceled or if the iterator yields an
106
// error.
107
//
108
-// Exmaple:
108
+// Example:
109
//
110
// for dirEnt, err := LsIter(ctx, ufsAPI, p) {
111
// if err != nil {
core/node/helpers/helpers.go
+1
-1
@@ -8,7 +8,7 @@ import (
8
9
type MetricsCtx context.Context
10
11
-// LifecycleCtx creates a context which will be cancelled when lifecycle stops
11
+// LifecycleCtx creates a context which will be canceled when lifecycle stops
12
//
13
// This is a hack which we need because most of our services use contexts in a
14
// wrong way
docs/changelogs/v0.13.md
+2
-2
@@ -53,7 +53,7 @@ View the linked [security advisory](https://github.com/ipfs/go-ipfs/security/adv
53
- bump to newer blockstore err not found (#301) ([ipld/go-car#301](https://github.com/ipld/go-car/pull/301))
54
- Car command supports for `largebytes` nodes (#296) ([ipld/go-car#296](https://github.com/ipld/go-car/pull/296))
55
- fix(test): rootless fixture should have no roots, not null roots
56
- - Allow extracton of a raw unixfs file (#284) ([ipld/go-car#284](https://github.com/ipld/go-car/pull/284))
56
+ - Allow extraction of a raw unixfs file (#284) ([ipld/go-car#284](https://github.com/ipld/go-car/pull/284))
57
- cmd/car: use a better install command in the README
58
- feat: --version selector for `car create` & update deps
59
- feat: add option to create blockstore that writes a plain CARv1 (#288) ([ipld/go-car#288](https://github.com/ipld/go-car/pull/288))
@@ -537,7 +537,7 @@ The more fully featured yamux stream multiplexer is now prioritized over mplex f
537
- Fix unixfs fetch (#364) ([ipfs/go-graphsync#364](https://github.com/ipfs/go-graphsync/pull/364))
538
- [Feature] UUIDs, protocol versioning, v2 protocol w/ dag-cbor messaging (#332) ([ipfs/go-graphsync#332](https://github.com/ipfs/go-graphsync/pull/332))
539
- feat(CHANGELOG): update for v0.12.0
540
- - Use do not send blocks for pause/resume & prevent processing of blocks on cancelled requests (#333) ([ipfs/go-graphsync#333](https://github.com/ipfs/go-graphsync/pull/333))
540
+ - Use do not send blocks for pause/resume & prevent processing of blocks on canceled requests (#333) ([ipfs/go-graphsync#333](https://github.com/ipfs/go-graphsync/pull/333))
541
- Support unixfs reification in default linksystem (#329) ([ipfs/go-graphsync#329](https://github.com/ipfs/go-graphsync/pull/329))
542
- Don't run hooks on blocks we didn't have (#331) ([ipfs/go-graphsync#331](https://github.com/ipfs/go-graphsync/pull/331))
543
- feat(responsemanager): trace full messages via links to responses (#325) ([ipfs/go-graphsync#325](https://github.com/ipfs/go-graphsync/pull/325))
docs/changelogs/v0.5.md
+1
-1
@@ -773,7 +773,7 @@ As usual, this release contains several Windows specific fixes and improvements:
773
- Introduce first strategic provider: do nothing ([ipfs/go-ipfs#6292](https://github.com/ipfs/go-ipfs/pull/6292))
774
- github.com/ipfs/go-bitswap (v0.0.8-e37498cf10d6 -> v0.2.13):
775
- refactor: remove WantManager ([ipfs/go-bitswap#374](https://github.com/ipfs/go-bitswap/pull/374))
776
- - Send CANCELs when session context is cancelled ([ipfs/go-bitswap#375](https://github.com/ipfs/go-bitswap/pull/375))
776
+ - Send CANCELs when session context is canceled ([ipfs/go-bitswap#375](https://github.com/ipfs/go-bitswap/pull/375))
777
- refactor: remove unused code ([ipfs/go-bitswap#373](https://github.com/ipfs/go-bitswap/pull/373))
778
- Change timing for DONT_HAVE timeouts to be more conservative ([ipfs/go-bitswap#371](https://github.com/ipfs/go-bitswap/pull/371))
779
- fix: avoid calling ctx.SetDeadline() every time we send a message ([ipfs/go-bitswap#369](https://github.com/ipfs/go-bitswap/pull/369))
docs/changelogs/v0.8.md
+4
-4
@@ -1,4 +1,4 @@
1
-# go-ipfs changelog v0.8
1
+ # go-ipfs changelog v0.8
2
3
## v0.8.0 2021-02-18
4
@@ -160,7 +160,7 @@ Go 1.15 (the latest version of Go) [no longer supports](https://github.com/golan
160
- Update go-ipld-prime@v0.5.0 (#92) ([ipfs/go-graphsync#92](https://github.com/ipfs/go-graphsync/pull/92))
161
- refactor(metadata): use cbor-gen encoding (#96) ([ipfs/go-graphsync#96](https://github.com/ipfs/go-graphsync/pull/96))
162
- Release/v0.1.2 ([ipfs/go-graphsync#95](https://github.com/ipfs/go-graphsync/pull/95))
163
- - Return Request context cancelled error (#93) ([ipfs/go-graphsync#93](https://github.com/ipfs/go-graphsync/pull/93))
163
+ - Return Request context canceled error (#93) ([ipfs/go-graphsync#93](https://github.com/ipfs/go-graphsync/pull/93))
164
- feat(benchmarks): add p2p stress test (#91) ([ipfs/go-graphsync#91](https://github.com/ipfs/go-graphsync/pull/91))
165
- Benchmark framework + First memory fixes (#89) ([ipfs/go-graphsync#89](https://github.com/ipfs/go-graphsync/pull/89))
166
- docs(CHANGELOG): update for v0.1.1 ([ipfs/go-graphsync#85](https://github.com/ipfs/go-graphsync/pull/85))
@@ -277,7 +277,7 @@ Go 1.15 (the latest version of Go) [no longer supports](https://github.com/golan
277
- satisfy race detector
278
- clean up
279
- copy string topic
280
- - add test for score adjustment from topis params reset
280
+ - add test for score adjustment from topic params reset
281
- prettify things
282
- add test for topic score parameter reset method
283
- add test for topic score parameter reset
@@ -315,7 +315,7 @@ Go 1.15 (the latest version of Go) [no longer supports](https://github.com/golan
315
- pass a conn that can be type asserted to a net.UDPConn to quic-go ([libp2p/go-libp2p-quic-transport#180](https://github.com/libp2p/go-libp2p-quic-transport/pull/180))
316
- add more integration tests ([libp2p/go-libp2p-quic-transport#181](https://github.com/libp2p/go-libp2p-quic-transport/pull/181))
317
- always close the connection in the cmd client ([libp2p/go-libp2p-quic-transport#175](https://github.com/libp2p/go-libp2p-quic-transport/pull/175))
318
- - use GitHub Actions to test interopability of releases ([libp2p/go-libp2p-quic-transport#173](https://github.com/libp2p/go-libp2p-quic-transport/pull/173))
318
+ - use GitHub Actions to test interoperability of releases ([libp2p/go-libp2p-quic-transport#173](https://github.com/libp2p/go-libp2p-quic-transport/pull/173))
319
- Implement CloseRead/CloseWrite ([libp2p/go-libp2p-quic-transport#174](https://github.com/libp2p/go-libp2p-quic-transport/pull/174))
320
- enable quic-go metrics collection ([libp2p/go-libp2p-quic-transport#172](https://github.com/libp2p/go-libp2p-quic-transport/pull/172))
321
- github.com/libp2p/go-libp2p-swarm (v0.2.8 -> v0.4.0):
docs/config.md
+4
-4
@@ -641,9 +641,9 @@ functions](https://github.com/ipfs/go-ipfs-blockstore/blob/547442836ade055cc114b
641
are used, so the constant `k` is 7 in the formula.
642
643
Enabling the BloomFilter can provide performance improvements specially when
644
-responding to many requests for inexistant blocks. It however requires a full
644
+responding to many requests for inexistent blocks. It however requires a full
645
sweep of all the datastore keys on daemon start. On very large datastores this
646
-can be a very taxing operation, particulary if the datastore does not support
646
+can be a very taxing operation, particularly if the datastore does not support
647
querying existing keys without reading their values at the same time (blocks).
648
649
Default: `0` (disabled)
@@ -1013,7 +1013,7 @@ Below is a list of the most common public gateway setups.
1013
1014
`http://dweb.link/ipfs/{cid}` → `http://{cid}.ipfs.dweb.link`
1015
1016
- - **X-Forwarded-Proto:** if you run Kubo behind a reverse proxy that provides TLS, make it add a `X-Forwarded-Proto: https` HTTP header to ensure users are redirected to `https://`, not `http://`. It will also ensure DNSLink names are inlined to fit in a single DNS label, so they work fine with a wildcart TLS cert ([details](https://github.com/ipfs/in-web-browsers/issues/169)). The NGINX directive is `proxy_set_header X-Forwarded-Proto "https";`.:
1016
+ - **X-Forwarded-Proto:** if you run Kubo behind a reverse proxy that provides TLS, make it add a `X-Forwarded-Proto: https` HTTP header to ensure users are redirected to `https://`, not `http://`. It will also ensure DNSLink names are inlined to fit in a single DNS label, so they work fine with a wildcard TLS cert ([details](https://github.com/ipfs/in-web-browsers/issues/169)). The NGINX directive is `proxy_set_header X-Forwarded-Proto "https";`.:
1017
1018
`http://dweb.link/ipfs/{cid}` → `https://{cid}.ipfs.dweb.link`
1019
@@ -2610,7 +2610,7 @@ Pebble is a LevelDB/RocksDB inspired key-value store focused on performance and
2610
You should use this datastore if:
2611
2612
- You need a datastore that is focused on performance.
2613
-- You need a datastore that is good for multi-terrabyte data sets.
2613
+- You need a datastore that is good for multi-terabyte data sets.
2614
- You need reliability by default, but may choose to disable WAL for maximum performance when reliability is not critical.
2615
- You want a datastore that does not need GC cycles and does not use more space than necessary
2616
- You want a datastore that does not take several minutes to start with large repositories
fuse/node/mount_unix.go
+1
-1
@@ -110,7 +110,7 @@ func doMount(node *core.IpfsNode, fsdir, nsdir string) error {
110
return fmtFuseErr(err2, nsdir)
111
}
112
113
- // setup node state, so that it can be cancelled
113
+ // setup node state, so that it can be canceled
114
node.Mounts.Ipfs = fsmount
115
node.Mounts.Ipns = nsmount
116
return nil
repo/common/common.go
+2
-2
@@ -61,8 +61,8 @@ func MapSetKV(v map[string]interface{}, key string, value interface{}) error {
61
return nil
62
}
63
64
-// Merges the right map into the left map, recursively traversing child maps
65
-// until a non-map value is found.
64
+// MapMergeDeep merges the right map into the left map, recursively traversing
65
+// child maps until a non-map value is found.
66
func MapMergeDeep(left, right map[string]interface{}) map[string]interface{} {
67
// We want to alter a copy of the map, not the original
68
result := make(map[string]interface{})
repo/fsrepo/datastores.go
+6
-7
@@ -17,16 +17,15 @@ import (
17
// ConfigFromMap creates a new datastore config from a map.
18
type ConfigFromMap func(map[string]interface{}) (DatastoreConfig, error)
19
20
-// DatastoreConfig is an abstraction of a datastore config. A "spec"
21
-// is first converted to a DatastoreConfig and then Create() is called
22
-// to instantiate a new datastore.
20
+// DatastoreConfig is an abstraction of a datastore config. A "spec" is first
21
+// converted to a DatastoreConfig and then Create() is called to instantiate a
22
+// new datastore.
23
type DatastoreConfig interface {
24
- // DiskSpec returns a minimal configuration of the datastore
25
- // represting what is stored on disk. Run time values are
26
- // excluded.
24
+ // DiskSpec returns a minimal configuration of the datastore representing
25
+ // what is stored on disk. Run time values are excluded.
26
DiskSpec() DiskSpec
27
29
- // Create instantiate a new datastore from this config
28
+ // Create instantiates a new datastore from this config.
29
Create(path string) (repo.Datastore, error)
30
}
31
repo/fsrepo/migrations/fetcher.go
+2
-2
@@ -79,7 +79,7 @@ func (f *MultiFetcher) Fetchers() []Fetcher {
79
return f.fetchers
80
}
81
82
-// NewLimitReadCloser returns a new io.ReadCloser with the reader wrappen in a
82
+// NewLimitReadCloser returns a new io.ReadCloser with the reader wrapped in a
83
// io.LimitedReader limited to reading the amount specified.
84
func NewLimitReadCloser(rc io.ReadCloser, limit int64) io.ReadCloser {
85
return limitReadCloser{
@@ -93,7 +93,7 @@ func NewLimitReadCloser(rc io.ReadCloser, limit int64) io.ReadCloser {
93
// variable is not set, then returns the provided distPath, and if that is not set
94
// then returns the IPNS path.
95
//
96
-// To get the IPFS path of the latest distribution, if not overriddin by the
96
+// To get the IPFS path of the latest distribution, if not overridden by the
97
// environ variable: GetDistPathEnv(CurrentIpfsDist).
98
func GetDistPathEnv(distPath string) string {
99
if dist := os.Getenv(envIpfsDistPath); dist != "" {