Skip to content

Commit

Permalink
fix initialization code
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Feb 21, 2019
1 parent 0b828d3 commit 26fb7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func NewService() *Service {
}

func (s *Service) InitDB(apiVersion string) error {
ds := &DynamoServices{ApiVersion: apiVersion, ServiceName: "__SERVICES", Time: "0", Version: 1, Services: []*DynamoServicesElement{}}
ds := DynamoServices{ApiVersion: apiVersion, ServiceName: "__SERVICES", Time: "0", Version: 1, Services: []*DynamoServicesElement{}}

// __SERVICE not found, write first record
err := s.table.Put(ds).Run()
Expand All @@ -121,7 +121,7 @@ func (s *Service) InitDB(apiVersion string) error {
}

func (s *Service) initService(dsElement *DynamoServicesElement) error {
ds := &DynamoServices{ServiceName: "__SERVICES", Time: "0", Version: 1, Services: []*DynamoServicesElement{dsElement}}
ds := DynamoServices{ServiceName: "__SERVICES", Time: "0", Version: 1, Services: []*DynamoServicesElement{dsElement}}

// __SERVICE not found, write first record
err := s.table.Put(ds).Run()
Expand Down

0 comments on commit 26fb7b7

Please sign in to comment.