summaryrefslogtreecommitdiffstats
path: root/models/user_follow.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_follow.go')
-rw-r--r--models/user_follow.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user_follow.go b/models/user_follow.go
index 2d64d05473..4bde71cb91 100644
--- a/models/user_follow.go
+++ b/models/user_follow.go
@@ -24,7 +24,7 @@ func FollowUser(userID, followID int64) (err error) {
}
sess := x.NewSession()
- defer sessionRelease(sess)
+ defer sess.Close()
if err = sess.Begin(); err != nil {
return err
}
@@ -50,7 +50,7 @@ func UnfollowUser(userID, followID int64) (err error) {
}
sess := x.NewSession()
- defer sessionRelease(sess)
+ defer sess.Close()
if err = sess.Begin(); err != nil {
return err
}