Unexport NewSessionManager
This isn't intended to be used by plugins.
This commit is contained in:
parent
86359156ee
commit
28a8f3f6ac
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue