Unexport NewSessionManager

This isn't intended to be used by plugins.
This commit is contained in:
Simon Ser 2019-12-11 12:56:59 +01:00
parent 86359156ee
commit 28a8f3f6ac
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ func (s *Server) parseSMTPURL(smtpURL string) error {
func newServer(imapURL, smtpURL string) (*Server, error) {
s := &Server{}
s.sessions = NewSessionManager(s.connectIMAP)
s.sessions = newSessionManager(s.connectIMAP)
if err := s.parseIMAPURL(imapURL); err != nil {
return nil, err

View file

@ -81,7 +81,7 @@ type SessionManager struct {
sessions map[string]*Session // protected by locker
}
func NewSessionManager(newIMAPClient func() (*imapclient.Client, error)) *SessionManager {
func newSessionManager(newIMAPClient func() (*imapclient.Client, error)) *SessionManager {
return &SessionManager{
sessions: make(map[string]*Session),
newIMAPClient: newIMAPClient,