Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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