iron / persistent

Middleware for sharing data between requests
43 stars 29 forks source link

(fix) add explicit 'static lifetimes to val types #27

Closed duelinmarkers closed 10 years ago

duelinmarkers commented 10 years ago

Fixing #26. This works in my example app, and it seems like 'static is right for the "normal" way to use Persistent, but I'm not sure if something else could work and not impose the limitation that the val be valid for the lifetime of the process.

reem commented 10 years ago

D should probably be bounded with Send as it has to go behind an RWLock/Mutex/Arc. That being said, this does fix the issue and the Send bound is implied anyway.