diff --git a/cmd/stores-server/stores.go b/cmd/stores-server/stores.go index 68124f6..cc602c5 100644 --- a/cmd/stores-server/stores.go +++ b/cmd/stores-server/stores.go @@ -42,7 +42,7 @@ func readStores(filename string) ([]*storespb.Store, error) { } reader := csv.NewReader(file) reader.Read() - for { + for i := 0; true; i++ { fields, err := reader.Read() if err == io.EOF { break @@ -51,8 +51,7 @@ func readStores(filename string) ([]*storespb.Store, error) { } store := &storespb.Store{ // United States Post Office,401,North Ashley Drive,Tampa,FL,33602,27.9473718,-82.4595414 - - Name: idFromField(fields[0]), + Name: idFromField(fmt.Sprintf("%d:%s", i, fields[0])), Type: "office", Title: fields[0], Location: &storespb.Location{