Skip to content

Commit 2f16f9b

Browse files
committed
Fix spelling mistakes found thanks to misspell
1 parent b0dc74c commit 2f16f9b

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ A human readable change log between our released versions can be found in here.
123123

124124
### New Stuff
125125

126-
* Updated the [mp4 lib](https://github.com/MStoykov/mp4) used for pseudo streaming to its version 0.1.3. The previous version had a bug which was leading to premanently blocked go routines.
126+
* Updated the [mp4 lib](https://github.com/MStoykov/mp4) used for pseudo streaming to its version 0.1.3. The previous version had a bug which was leading to permanently blocked go routines.
127127

128128
## v0.1.3 - 2015-11-05
129129

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ Description of all the keys and their meaning:
104104

105105
* `virtual_hosts` (*array*) - Contains the [virtual hosts](#virtual-hosts) of this server. Every virtual host is represented by a object which contains its configuration.
106106

107-
* `max_io_transfer_size` (*string*) - Bytes size. It tells the maximum size of blocks to be transfered on the network. The timeouts previously mentioned are for pieces at most this big. Too big of a size might lead to timing out or too excessive memory usage, too small may lead to bad performance due to too many syscalls. If no throttling is used this will be the size of all writes/sendfiles. The default is '1m'.
107+
* `max_io_transfer_size` (*string*) - Bytes size. It tells the maximum size of blocks to be transferred on the network. The timeouts previously mentioned are for pieces at most this big. Too big of a size might lead to timing out or too excessive memory usage, too small may lead to bad performance due to too many syscalls. If no throttling is used this will be the size of all writes/sendfiles. The default is '1m'.
108108

109-
* `min_io_transfer_size` (*string*) - Bytes size. It tells the minimum size of blocks to be transfered on the network. This number has no meaning when throttling isn't used. Even then it might be ignored if the throttle speed per second is less than it. In that case the minimum size becomes the speed for the connection that is throttled. The default is '128k'.
109+
* `min_io_transfer_size` (*string*) - Bytes size. It tells the minimum size of blocks to be transferred on the network. This number has no meaning when throttling isn't used. Even then it might be ignored if the throttle speed per second is less than it. In that case the minimum size becomes the speed for the connection that is throttled. The default is '128k'.
110110

111111
### Cache Zones
112112

app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (a *Application) Run() error {
105105
}
106106
a.started = time.Now()
107107
if a.cfg == nil {
108-
return errors.New("Cannot start application with emtpy config")
108+
return errors.New("Cannot start application with empty config")
109109
}
110110

111111
if err := a.reinitFromConfig(a.cfg, false); err != nil {

handler/flv/flv_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestFlv404(t *testing.T) {
8787
v.RequestHandle(context.Background(), rec, req)
8888
var expected, got = "404 page not found\n", rec.Body.String()
8989
if rec.Code != http.StatusNotFound {
90-
t.Errorf("flv handler: code not %d on not existant request but %d", http.StatusNotFound, rec.Code)
90+
t.Errorf("flv handler: code not %d on not existent request but %d", http.StatusNotFound, rec.Code)
9191
}
9292
if got != expected {
9393
t.Errorf("flv handler: didn't return 404, expected `%s` got `%s`", expected, got)
@@ -138,7 +138,7 @@ func TestFlvWithWriteError(t *testing.T) { // for the coverage
138138
v.RequestHandle(context.Background(), newErrAtWriter(rec, errAfter, expectedErr), req)
139139

140140
if rec.Body.Len() != errAfter {
141-
t.Errorf("didn't stop writing when error occured")
141+
t.Errorf("didn't stop writing when error occurred")
142142
}
143143
}
144144

handler/new.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type newHandlerFunc func(*config.Handler, *types.Location, types.RequestHandler)
2323

2424
// New creates and returns a new RequestHandler identified by its module name.
2525
// Identifier is the module's directory (hence its package name).
26-
// Additionaly it receives handler specific config in the form of *json.RawMessage
26+
// Additionally it receives handler specific config in the form of *json.RawMessage
2727
// and types.Location representing the location the handler will be used for.
2828
func New(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) {
2929
if cfg == nil {

storage/disk/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func appendRandomSuffix(path string) string {
3535

3636
func (s *Disk) getObjectIDPath(id *types.ObjectID) string {
3737
// !TODO redo this with more []byte appending(we know how big it will be)
38-
// less string concatination
38+
// less string contamination
3939
h := id.StrHash()
4040
// Disk objects are written 2 levels deep with maximum of 256 folders in each
4141
if s.skipCacheKeyInPath {

tools/module_generator/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func main() {
3838
}
3939

4040
if outputFile == "" {
41-
log.Fatalln("The -ouput argument is required. See -h.")
41+
log.Fatalln("The -output argument is required. See -h.")
4242
}
4343

4444
tpl, err := template.ParseFiles(templateFile)

tools/wrk_test.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ FIRST = 1 -- Range: bytes=<small-number>-number
9595
MIDDLE = 2 -- Rnage: bytes=<middle-number>-number
9696
LAST = 3 -- Range: bytes=<high-number>-<number-possibly-end>
9797

98-
-- Represents the likelyhood of request starting its Range from this position
98+
-- Represents the likelihood of request starting its Range from this position
9999
range_starts = {
100100

101101
-- begging: 50%

types/object_index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (oi *ObjectIndex) String() string {
2222
return fmt.Sprintf("%s:%d", oi.ObjID, oi.Part)
2323
}
2424

25-
// Hash returns the pre-calculated sha1 of the ObjectID with concatinated the 4 bytes identifying the part
25+
// Hash returns the pre-calculated sha1 of the ObjectID with contaminated the 4 bytes identifying the part
2626
func (oi *ObjectIndex) Hash() ObjectIndexHash {
2727
var hash ObjectIndexHash
2828
copy(hash[:], oi.ObjID.hash[:])

types/object_metadata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type ObjectMetadata struct {
2525
// pass down for this object for any subsequent request.
2626
Headers http.Header
2727

28-
// The time at wich this object can be considered stale. After this time
28+
// The time at which this object can be considered stale. After this time
2929
// the object must be revalidated or discarded. This value is a unix timestamp.
3030
ExpiresAt int64
3131
}

types/request_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"golang.org/x/net/context"
88
)
99

10-
// RequestHandler interface defines the RequestHandle funciton. All nedomi handle
10+
// RequestHandler interface defines the RequestHandle function. All nedomi handle
1111
// modules must implement this interface.
1212
type RequestHandler interface {
1313

utils/cacheutils/caching_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
var responseCacheabilityMatrix = []struct {
1414
// the code of the response
1515
code int
16-
// the string represenation of the headers
16+
// the string representation of the headers
1717
headers string
1818
// whether this should be cacheable
1919
cacheable bool

utils/testutils/test_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func GetTestFolder(t testing.TB) (string, func()) {
3232
func ShouldntFail(t testing.TB, errors ...error) {
3333
for idx, err := range errors {
3434
if err != nil {
35-
t.Fatalf("An unexpected error occured in statement %d: %s", idx+1, err)
35+
t.Fatalf("An unexpected error occurred in statement %d: %s", idx+1, err)
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)