mirror of https://github.com/ledisdb/ledisdb.git
fix misspelling
This commit is contained in:
parent
5b49c67ad9
commit
4d6b42671b
|
@ -19,7 +19,7 @@ var allowedContentTypes = map[string]struct{}{
|
||||||
"bson": struct{}{},
|
"bson": struct{}{},
|
||||||
"msgpack": struct{}{},
|
"msgpack": struct{}{},
|
||||||
}
|
}
|
||||||
var unsopportedCommands = map[string]struct{}{
|
var unsupportedCommands = map[string]struct{}{
|
||||||
"slaveof": struct{}{},
|
"slaveof": struct{}{},
|
||||||
"fullsync": struct{}{},
|
"fullsync": struct{}{},
|
||||||
"sync": struct{}{},
|
"sync": struct{}{},
|
||||||
|
@ -87,7 +87,7 @@ func (c *httpClient) makeRequest(app *App, r *http.Request, w http.ResponseWrite
|
||||||
}
|
}
|
||||||
|
|
||||||
req.cmd = strings.ToLower(cmd)
|
req.cmd = strings.ToLower(cmd)
|
||||||
if _, ok := unsopportedCommands[req.cmd]; ok {
|
if _, ok := unsupportedCommands[req.cmd]; ok {
|
||||||
return nil, fmt.Errorf("unsupported command: '%s'", cmd)
|
return nil, fmt.Errorf("unsupported command: '%s'", cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ func (w *httpWriter) writeScorePairArray(lst []ledis.ScorePair, withScores bool)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *httpWriter) writeBulkFrom(n int64, rb io.Reader) {
|
func (w *httpWriter) writeBulkFrom(n int64, rb io.Reader) {
|
||||||
w.writeError(fmt.Errorf("unsuport"))
|
w.writeError(fmt.Errorf("unsupport"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *httpWriter) flush() {
|
func (w *httpWriter) flush() {
|
||||||
|
|
Loading…
Reference in New Issue