Skip to content

Commit 9e8b2cd

Browse files
committed
Remove deprecated method from example
1 parent 7aef57e commit 9e8b2cd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

examples/loadbalancer/loadbalancer.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ func main() {
2323
os.Exit(1)
2424
}
2525

26-
// Enable load balancer functionality for project
27-
_, err = loadbalancerClient.EnableService(context.Background(), projectId).XRequestID("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Execute()
28-
if err != nil {
29-
fmt.Fprintf(os.Stderr, "Error when calling `EnableLoadBalancing`: %v\n", err)
30-
os.Exit(1)
31-
}
32-
fmt.Printf("Enabled load balancer functionality for project %s.\n", projectId)
33-
3426
// List the load balancer instances for your project
3527
listInstancesResp, err := loadbalancerClient.ListLoadBalancers(context.Background(), projectId).Execute()
3628
if err != nil {

0 commit comments

Comments
 (0)