mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-12 02:37:53 -04:00
b445620f03
The `Clone` impl for `ClientConnection` would create an independent instance that could not observe module hotswapping. This would result in methods called on a replaced `ModuleHost` to fail, because that host exited already. Fix by reading the `ModuleHost` from the watch channel directly, instead of maintaining a redundant copy. Also fix `watch_module_host` to properly mark the current module host as seen. # Expected complexity level and risk 2 # Testing - [x] test suite passes - [x] ran @bfops repro script