|  | @@ -2,17 +2,13 @@ package auth
 | 
	
		
			
			| 2 | 2 |  
 | 
	
		
			
			| 3 | 3 |  import (
 | 
	
		
			
			| 4 | 4 |  	"github.com/go-redis/redis"
 | 
	
		
			
			| 5 |  | -	"sync"
 | 
	
		
			
			| 6 | 5 |  	"time"
 | 
	
		
			
			| 7 | 6 |  )
 | 
	
		
			
			| 8 | 7 |  
 | 
	
		
			
			| 9 |  | -type RedisSessionStore struct {
 | 
	
		
			
			| 10 |  | -	once   *sync.Once
 | 
	
		
			
			| 11 |  | -	client *redis.Client
 | 
	
		
			
			| 12 |  | -}
 | 
	
		
			
			|  | 8 | +type RedisSessionStore struct{ client *redis.Client }
 | 
	
		
			
			| 13 | 9 |  
 | 
	
		
			
			| 14 | 10 |  func NewRedisSessionStore(address string, password string) *RedisSessionStore {
 | 
	
		
			
			| 15 |  | -	session := &RedisSessionStore{once: &sync.Once{}}
 | 
	
		
			
			|  | 11 | +	session := &RedisSessionStore{}
 | 
	
		
			
			| 16 | 12 |  	session.client = redis.NewClient(&redis.Options{
 | 
	
		
			
			| 17 | 13 |  		Addr:     address,
 | 
	
		
			
			| 18 | 14 |  		Password: password,
 |