mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
be0508cf26
This adds error returns to model methods called by the protocol layer. Returning an error will cause the connection to be torn down as the message couldn't be handled. Using this to signal that a folder isn't currently available will then cause a reconnection a few moments later, when it'll hopefully work better. Tested manually by running with STRECHECKDBEVERY=0 on a nontrivially sized setup. This panics reliably before this patch, but just causes a disconnect/reconnect now. |
||
---|---|---|
.. | ||
testdata | ||
api_auth_test.go | ||
api_auth.go | ||
api_csrf.go | ||
api_statics.go | ||
api_test.go | ||
api.go | ||
debug.go | ||
mocked_config_test.go | ||
mocked_connections_test.go | ||
mocked_cpuusage_test.go | ||
mocked_discovery_test.go | ||
mocked_events_test.go | ||
mocked_logger_test.go | ||
mocked_model_test.go | ||
support_bundle.go |