Skip to content

Commit 71a2f74

Browse files
committed
use non-default project
1 parent efcbdfa commit 71a2f74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Config struct {
1717
FeastServingHost string `default:"localhost" split_words:"true"`
1818
FeastServingPort int `default:"6566" split_words:"true"`
1919
ListenPort string `default:"8080" split_words:"true"`
20+
ProjectName string `default:"default" split_words:"true"`
2021
}
2122

2223
func main() {
@@ -39,7 +40,7 @@ func main() {
3940
log.Fatal("Url parameter 'entity_count' is missing. Please specify the entity count in order to generate the appropriate load")
4041
}
4142
entityCount, err := strconv.Atoi(entityCountParam)
42-
request := buildRequest(entityCount)
43+
request := buildRequest(entityCount, c.ProjectName)
4344

4445
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
4546
defer cancel()
@@ -71,7 +72,7 @@ func main() {
7172
}
7273
}
7374

74-
func buildRequest(entityRowCount int) feast.OnlineFeaturesRequest {
75+
func buildRequest(entityRowCount int, projectName string) feast.OnlineFeaturesRequest {
7576
var entityRows []feast.Row
7677

7778
for i := 0; i <= entityRowCount; i++ {
@@ -99,6 +100,7 @@ func buildRequest(entityRowCount int) feast.OnlineFeaturesRequest {
99100
},
100101
Entities: entityRows,
101102
OmitEntities: false,
103+
Project: projectName,
102104
}
103105
return request
104106
}

0 commit comments

Comments
 (0)