Skip to content

Commit

Permalink
Fix disabling model storage
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Dec 11, 2024
1 parent 5f5ceeb commit b35c1e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Stipple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,7 @@ const MODELDEPID = "!!MODEL!!"
const CHANNELPARAM = :CHANNEL__


function sessionid(; encrypt::Bool = true) :: String
use_model_storage() || error("Model storage is disabled")

function sessionid(; encrypt::Bool = true) :: Union{String,Nothing}
sessid = Stipple.ModelStorage.Sessions.GenieSession.session().id

encrypt ? Genie.Encryption.encrypt(sessid) : sessid
Expand Down

0 comments on commit b35c1e5

Please sign in to comment.