Skip to content

Commit

Permalink
making cons more robust again.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jul 3, 2017
1 parent f9f4f7b commit a11beb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tls-session-manager/Network/TLS/SessionManager.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ newSessionManager conf = do

cons :: Int -> Item -> DB -> DB
cons lim (k,t,v,Add) db
| lim == 0 = Q.empty
| lim <= 0 = Q.empty
| Q.size db == lim = case Q.minView db of
Nothing -> assert False $ Q.insert k t v Q.empty
Just (_,_,_,db') -> Q.insert k t v db'
Expand Down

0 comments on commit a11beb4

Please sign in to comment.