clientv3: Renaming SortByCreatedRev to maintain consistency.

Renamed SortByCreatedRev to SortByCreateRevision to be consistent
with the naming used for SortByModRevision.
This commit is contained in:
Ajit Yagaty
2016-03-22 17:25:20 -07:00
parent 606889a002
commit 2bb417bfff
5 changed files with 7 additions and 7 deletions

View File

@ -209,10 +209,10 @@ func WithSerializable() OpOption {
}
// WithFirstCreate gets the key with the oldest creation revision in the request range.
func WithFirstCreate() []OpOption { return withTop(SortByCreatedRev, SortAscend) }
func WithFirstCreate() []OpOption { return withTop(SortByCreateRevision, SortAscend) }
// WithLastCreate gets the key with the latest creation revision in the request range.
func WithLastCreate() []OpOption { return withTop(SortByCreatedRev, SortDescend) }
func WithLastCreate() []OpOption { return withTop(SortByCreateRevision, SortDescend) }
// WithFirstKey gets the lexically first key in the request range.
func WithFirstKey() []OpOption { return withTop(SortByKey, SortAscend) }