feat(scaffolder): Notify the entity service that things have been created

This commit is contained in:
blam
2020-02-07 16:11:06 +01:00
parent b1974c957f
commit b73570dc5b
+1 -2
View File
@@ -35,7 +35,6 @@ func NewServer() *Server {
log.Fatal("Cannot connect to inventory service")
}
//inventory: inventory.NewInventoryClient(conn),
return &Server{
github: lib.NewGithubClient(),
inventory: inventory.NewInventoryClient(conn),
@@ -103,7 +102,7 @@ func (s *Server) Create(ctx context.Context, req *pb.CreateRequest) (*pb.CreateR
}
// notify the inventory service
_, err = s.inventory.CreateEntity(context.Background(), &inventory.CreateEntityRequest{
_, err = s.inventory.CreateEntity(ctx, &inventory.CreateEntityRequest{
Entity: &inventory.Entity{
Uri: fmt.Sprintf("boss://service/%s", req.ComponentId),
},