Skip to content

Commit 10a4567

Browse files
fix(instance): WaitForServer returns an error interface (#245)
1 parent 90ac40d commit 10a4567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/instance/v1/server_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type WaitForServerRequest struct {
5151

5252
// WaitForServer wait for the server to be in a "terminal state" before returning.
5353
// This function can be used to wait for a server to be started for example.
54-
func (s *API) WaitForServer(req *WaitForServerRequest) (*Server, scw.SdkError) {
54+
func (s *API) WaitForServer(req *WaitForServerRequest) (*Server, error) {
5555

5656
terminalStatus := map[ServerState]struct{}{
5757
ServerStateStopped: {},

0 commit comments

Comments
 (0)