mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
feat(GODT-2585): Server Manager
Add a dedicated go-routine whose sole responsibility is to manage the life time of the IMAP and SMTP servers and their listeners. The current implementation behaves the same way as the previous state. The new behavior will be implemented in a follow MR.
This commit is contained in:
@ -60,11 +60,11 @@ func (s *scenario) theAPIRequiresBridgeVersion(version string) error {
|
||||
}
|
||||
|
||||
func (s *scenario) theUserChangesTheIMAPPortTo(port int) error {
|
||||
return s.t.bridge.SetIMAPPort(port)
|
||||
return s.t.bridge.SetIMAPPort(context.Background(), port)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserChangesTheSMTPPortTo(port int) error {
|
||||
return s.t.bridge.SetSMTPPort(port)
|
||||
return s.t.bridge.SetSMTPPort(context.Background(), port)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserSetsTheAddressModeOfUserTo(user, mode string) error {
|
||||
@ -144,11 +144,11 @@ func (s *scenario) theUserHasEnabledAlternativeRouting() error {
|
||||
}
|
||||
|
||||
func (s *scenario) theUserSetIMAPModeToSSL() error {
|
||||
return s.t.bridge.SetIMAPSSL(true)
|
||||
return s.t.bridge.SetIMAPSSL(context.Background(), true)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserSetSMTPModeToSSL() error {
|
||||
return s.t.bridge.SetSMTPSSL(true)
|
||||
return s.t.bridge.SetSMTPSSL(context.Background(), true)
|
||||
}
|
||||
|
||||
func (s *scenario) theUserReportsABug() error {
|
||||
|
||||
Reference in New Issue
Block a user