scratch that auth function for now

master
Jordan Orelli 11 years ago
parent d91ba2c32b
commit ef63267d84

@ -35,7 +35,7 @@ func main() {
defer conn.Close() defer conn.Close()
if options.password != "" { if options.password != "" {
auth(options.password).Write(conn) fmt.Fprintf(conn, "*2\r\n$4\r\nauth\r\n$%d\r\n%s\r\n", len(options.password), options.password)
v, err := readValue(conn) v, err := readValue(conn)
if err != nil { if err != nil {
fmt.Printf("unable to auth: %v\n", err) fmt.Printf("unable to auth: %v\n", err)

@ -36,10 +36,6 @@ func (m maybe) val() value {
return m.value return m.value
} }
func auth(password string) value {
return Array{BulkString("auth"), BulkString(password)}
}
func isOK(v value) bool { func isOK(v value) bool {
vv, ok := v.(String) vv, ok := v.(String)
if !ok { if !ok {

Loading…
Cancel
Save