Skip to content

Commit 1234a87

Browse files
authored
fix(apple-silicon): remove waitForPossibleDeletion (scaleway#2409)
1 parent dd7ae0e commit 1234a87

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

api/applesilicon/v1alpha1/apple_silicon_utils.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@ func (s *API) WaitForServer(req *WaitForServerRequest, opts ...scw.RequestOption
6060
return server.(*Server), nil
6161
}
6262

63-
func (s *API) WaitForPossibleDeletion(req *WaitForServerRequest, opts ...scw.RequestOption) (*Server, error) {
64-
server, err := s.WaitForServer(&WaitForServerRequest{
65-
ServerID: req.ServerID,
66-
Zone: req.Zone,
67-
Timeout: scw.TimeDurationPtr(defaultTimeout),
68-
RetryInterval: scw.TimeDurationPtr(defaultRetryInterval),
69-
}, opts...,
70-
)
71-
if err != nil {
72-
return nil, errors.Wrap(err, "waiting for server failed")
73-
}
74-
timeToDelete := *server.DeletableAt
75-
time.Sleep(time.Until(timeToDelete))
76-
return server, nil
77-
}
78-
7963
func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerRequest, opts ...scw.RequestOption) ([]*ServerPrivateNetwork, error) {
8064
timeout := defaultTimeout
8165
if req.Timeout != nil {

0 commit comments

Comments
 (0)