Skip to content

Commit

Permalink
fix(apple-silicon): remove waitForPossibleDeletion (#2409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di authored Feb 6, 2025
1 parent dd7ae0e commit 1234a87
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions api/applesilicon/v1alpha1/apple_silicon_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,6 @@ func (s *API) WaitForServer(req *WaitForServerRequest, opts ...scw.RequestOption
return server.(*Server), nil
}

func (s *API) WaitForPossibleDeletion(req *WaitForServerRequest, opts ...scw.RequestOption) (*Server, error) {
server, err := s.WaitForServer(&WaitForServerRequest{
ServerID: req.ServerID,
Zone: req.Zone,
Timeout: scw.TimeDurationPtr(defaultTimeout),
RetryInterval: scw.TimeDurationPtr(defaultRetryInterval),
}, opts...,
)
if err != nil {
return nil, errors.Wrap(err, "waiting for server failed")
}
timeToDelete := *server.DeletableAt
time.Sleep(time.Until(timeToDelete))
return server, nil
}

func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerRequest, opts ...scw.RequestOption) ([]*ServerPrivateNetwork, error) {
timeout := defaultTimeout
if req.Timeout != nil {
Expand Down

0 comments on commit 1234a87

Please sign in to comment.