mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
Fix the yesterday's SetImmutable feature... I'm idiot.
Former-commit-id: 12c96dacf6932ca3f6d37a4a9e40b66b7fe9b077
This commit is contained in:
parent
14e7751d21
commit
acd3389dd7
|
@ -244,9 +244,9 @@ func (s *session) VisitAll(cb func(k string, v interface{})) {
|
||||||
func (s *session) set(key string, value interface{}, immutable bool) {
|
func (s *session) set(key string, value interface{}, immutable bool) {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
if immutable {
|
if immutable {
|
||||||
s.values.Set(key, value)
|
|
||||||
} else {
|
|
||||||
s.values.SetImmutable(key, value)
|
s.values.SetImmutable(key, value)
|
||||||
|
} else {
|
||||||
|
s.values.Set(key, value)
|
||||||
}
|
}
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user