Skip to content

Commit

Permalink
Pass the timeout to json client
Browse files Browse the repository at this point in the history
  • Loading branch information
dsh2dsh committed Nov 6, 2024
1 parent 1a690ef commit bae277b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/daemon/job/connecter.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (self *Connecter) newServer(server, listenerName, clientIdentity string,
return nil, fmt.Errorf("build jsonclient for %q: %w", name, err)
}

cn := newServerConnected(name, NewClient(listenerName, jsonClient))
client := NewClient(listenerName, jsonClient).WithTimeout(self.timeout)
cn := newServerConnected(name, client)
return cn, nil
}

Expand Down

0 comments on commit bae277b

Please sign in to comment.