(m uhaha.Machine, args []string)
| 346 | return nil, err |
| 347 | } |
| 348 | |
| 349 | return redcon.SimpleInt(n), nil |
| 350 | } |
| 351 | |
| 352 | func cmdZREVRANK(m uhaha.Machine, args []string) (interface{}, error) { |
| 353 | if len(args) != 3 { |
| 354 | return nil, uhaha.ErrWrongNumArgs |
| 355 | } |
| 356 | |
| 357 | n, err := ldb.ZRevRank([]byte(args[1]), []byte(args[2])) |
| 358 | if err != nil { |
| 359 | return nil, err |
| 360 | } |
| 361 | |
| 362 | if n == -1 { |
| 363 | return nil, nil |
| 364 | } |
| 365 | |
| 366 | return redcon.SimpleInt(n), nil |
nothing calls this directly
no outgoing calls
no test coverage detected