diff options
Diffstat (limited to 'src/helsinki.at/rhimport/session_store.go')
-rw-r--r-- | src/helsinki.at/rhimport/session_store.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimport/session_store.go b/src/helsinki.at/rhimport/session_store.go index bb4043b..db3f217 100644 --- a/src/helsinki.at/rhimport/session_store.go +++ b/src/helsinki.at/rhimport/session_store.go @@ -39,7 +39,7 @@ type newSessionResponse struct { } type newSessionRequest struct { - ctx *ImportContext + ctx *Context refId string response chan newSessionResponse } @@ -107,7 +107,7 @@ func generateSessionId() (string, error) { return base64.RawStdEncoding.EncodeToString(b[:]), nil } -func (self *SessionStore) new(ctx *ImportContext, refId string) (resp newSessionResponse) { +func (self *SessionStore) new(ctx *Context, refId string) (resp newSessionResponse) { resp.responsecode = http.StatusOK resp.errorstring = "OK" if !ctx.Trusted { @@ -223,7 +223,7 @@ type SessionStoreChan struct { removeChan chan<- removeSessionRequest } -func (self *SessionStoreChan) New(ctx *ImportContext, refId string) (string, *SessionChan, int, string) { +func (self *SessionStoreChan) New(ctx *Context, refId string) (string, *SessionChan, int, string) { resCh := make(chan newSessionResponse) req := newSessionRequest{} req.ctx = ctx |