Skip to content
Snippets Groups Projects
Unverified Commit b814424b authored by Bob Callaway's avatar Bob Callaway Committed by GitHub
Browse files

use string for field to detect default log index value (#99)

parent b4511cd3
No related branches found
No related tags found
No related merge requests found
......@@ -268,11 +268,11 @@ func addUUIDPFlags(cmd *cobra.Command, required bool) error {
}
type logIndexFlag struct {
index int64
index string
}
func (l *logIndexFlag) String() string {
return fmt.Sprint(l.index)
return l.index
}
func (l *logIndexFlag) Set(v string) error {
......@@ -285,7 +285,7 @@ func (l *logIndexFlag) Set(v string) error {
} else if logIndexInt < 0 {
return errors.New("--log-index must be greater than or equal to 0")
}
l.index = logIndexInt
l.index = v
return nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment