Skip to content

Commit

Permalink
#435,fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
flike committed May 31, 2018
1 parent e2ff84f commit cff3b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/router/numkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type NumKeyRange struct {
}

func (kr NumKeyRange) MapKey() string {
return fmt.Sprintf("%d-%d", kr.String(), kr.End)
return fmt.Sprintf("%d-%d", kr.Start, kr.End)
}

func (kr NumKeyRange) Contains(i int64) bool {
Expand Down

0 comments on commit cff3b78

Please sign in to comment.