Chore: solved some todos
This commit is contained in:
		| @@ -183,17 +183,6 @@ func cacheSetSession(key string, session *models.Session) error { | ||||
| 		return err | ||||
| 	} | ||||
| 	memcache.Set(key, sesb) | ||||
| 	// TODO: to config | ||||
| 	memcache.Expire(key, 60*60) | ||||
| 	memcache.Expire(key, cfg.SessionLifetime) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // unused | ||||
| // func updateRoomInSession(ctx context.Context, roomID string) (context.Context, error) { | ||||
| // 	s, ok := ctx.Value(models.CtxSessionKey).(*models.Session) | ||||
| // 	if !ok { | ||||
| // 		return context.TODO(), errors.New("failed to extract session from ctx") | ||||
| // 	} | ||||
| // 	s.CurrentRoom = roomID | ||||
| // 	return context.WithValue(ctx, "session", s), nil | ||||
| // } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder