Skip to content
Snippets Groups Projects
Commit 7ff9ca96 authored by Christian Pointner's avatar Christian Pointner
Browse files

minor name change

parent 34c01fbd
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ func (s *Session) AttachUploader() (<-chan bool, chan<- AttachmentChunk) {
// *********************************************************
// Semi-Public Interface (only used by sessionStore)
func (s *session) getInterface() *Session {
func (s *session) public() *Session {
ch := &Session{}
ch.runChan = s.runChan
ch.cancelChan = s.cancelChan
......
......@@ -182,7 +182,7 @@ func (store *SessionStore) new(ctx *ImportContext, refId string) (resp newSessio
return
}
store.store[ctx.GroupName].sessions[resp.id] = &sessionStoreSessionElement{s, refId}
resp.session = store.store[ctx.GroupName].sessions[resp.id].s.getInterface()
resp.session = store.store[ctx.GroupName].sessions[resp.id].s.public()
store.dbgLog.Printf("Importer(SessionStore): created session for '%s' -> %s", ctx.GroupName, resp.id)
store.store[ctx.GroupName].callUpdateHandlerAdd(resp.id, refId)
return
......@@ -200,7 +200,7 @@ func (store *SessionStore) get(groupname, id string) (resp getSessionResponse) {
}
if session, exists := group.sessions[id]; exists {
resp.session = session.s.getInterface()
resp.session = session.s.public()
resp.refId = session.refId
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment