Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Mar 30, 2017
1 parent 5db0e72 commit c3d4067
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rules/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Namespaces struct {
func NewNamespaces(nss *schema.Namespaces) Namespaces {
return Namespaces{
namespaces: nss.Namespaces,
ruleSetCutover: time.Unix(0, nss.RulesetCutover),
ruleSetCutover: time.Unix(0, nss.RulesetCutoverTime),
version: int(nss.Version),
}
}
Expand Down
2 changes: 1 addition & 1 deletion rules/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func NewRuleSet(rs *schema.RuleSet, opts Options) (RuleSet, error) {
lastUpdatedAt: time.Unix(0, rs.LastUpdatedAt),
tombStoned: rs.Tombstoned,
version: int(rs.Version),
cutover: time.Unix(0, rs.Cutover),
cutover: time.Unix(0, rs.CutoverTime),
iterFn: iterFn,
newIDFn: opts.NewIDFn(),
mappingRules: mappingRules,
Expand Down
4 changes: 2 additions & 2 deletions rules/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestRollupTargetClone(t *testing.T) {
func TestRuleSetMatchMappingRules(t *testing.T) {
ruleSetConfig := &schema.RuleSet{
Version: 1,
Cutover: time.Now().UnixNano(),
CutoverTime: time.Now().UnixNano(),
MappingRules: testMappingRulesConfig(),
}
ruleSet, err := NewRuleSet(ruleSetConfig, testRuleSetOptions())
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestRuleSetMatchRollupRules(t *testing.T) {
func TestTombstonedRuleSetMatch(t *testing.T) {
ruleSetConfig := &schema.RuleSet{
Version: 1,
Cutover: time.Now().UnixNano(),
CutoverTime: time.Now().UnixNano(),
Tombstoned: true,
MappingRules: testMappingRulesConfig(),
RollupRules: testRollupRulesConfig(),
Expand Down

0 comments on commit c3d4067

Please sign in to comment.