Compare commits

..

3 Commits

Author SHA1 Message Date
Danny Kim 4ccd20299b Explain why the session lives in a per-instance slot 2026-09-26 01:54:31 +09:00
Danny Kim cb7330b8cb Sign Markdown saved to the folder with the configured ENS name and key 2026-09-26 01:54:25 +09:00
Danny Kim a4d1fae1d3 Open a WebDAV server as a folder under the signature plugin (#1)
Co-authored-by: Danny Kim <temeddix@gmail.com>
Co-committed-by: Danny Kim <temeddix@gmail.com>
2026-09-25 16:54:15 +00:00
+4
View File
@@ -32,6 +32,10 @@ struct Session {
signer: Signer,
}
// The host creates one component instance per connection and calls into it
// on a single thread, so this slot holds exactly one connection's session and
// is not shared state between connections. A WASI component has no other place
// to keep state between exported calls.
thread_local! {
static SESSION: RefCell<Option<Session>> = const { RefCell::new(None) };
}