Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit a58d1eb

Browse files
committed
library changed syntax slightly, breaking build. Changed to update
1 parent d7822dc commit a58d1eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
log "github.com/Sirupsen/logrus"
1212
haikunator "github.com/atrox/haikunatorgo"
1313
"github.com/gin-contrib/sessions"
14+
"github.com/gin-contrib/sessions/cookie"
1415
"github.com/gin-gonic/gin"
1516
cache "github.com/hashicorp/golang-lru"
1617
"github.com/msoedov/hacker-slides/auth"
@@ -27,7 +28,7 @@ func NewApp() *gin.Engine {
2728

2829
r := gin.Default()
2930

30-
store := sessions.NewCookieStore([]byte("secret"))
31+
store := cookie.NewStore([]byte("secret"))
3132
arc, err := cache.NewARC(10)
3233
if err != nil {
3334
log.Fatalf("Failied to allocate cache %#v", err)

0 commit comments

Comments
 (0)