forked from mirror/client_golang
Code Review: Useless time and comment.
This commit is contained in:
parent
10dae5d108
commit
f761854eff
|
@ -40,9 +40,7 @@ const (
|
|||
var Processor001 Processor = &processor001{}
|
||||
|
||||
// processor001 is responsible for handling API version 0.0.1.
|
||||
type processor001 struct {
|
||||
time clock
|
||||
}
|
||||
type processor001 struct{}
|
||||
|
||||
// entity001 represents a the JSON structure that 0.0.1 uses.
|
||||
type entity001 []struct {
|
||||
|
|
|
@ -85,8 +85,8 @@ func (f *Fingerprint) Equal(o *Fingerprint) bool {
|
|||
|
||||
const rowKeyDelimiter = "-"
|
||||
|
||||
// LoadFromString transforms a rowKey into a Fingerprint, resetting any
|
||||
// previous attributes.
|
||||
// LoadFromString transforms a string representation into a Fingerprint,
|
||||
// resetting any previous attributes.
|
||||
func (f *Fingerprint) LoadFromString(s string) {
|
||||
components := strings.Split(s, rowKeyDelimiter)
|
||||
hash, err := strconv.ParseUint(components[0], 10, 64)
|
||||
|
|
Loading…
Reference in New Issue