<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti/src/reload_cfg.rs, branch arti-v1.2.7</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-08-27T13:35:30Z</updated>
<entry>
<title>tor-config: Rename watch_file to watch_path.</title>
<updated>2024-08-27T13:35:30Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-27T11:30:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5619aa0ed22a2421defa53189564baea24a0bf16'/>
<id>urn:sha1:5619aa0ed22a2421defa53189564baea24a0bf16</id>
<content type='text'>
`FileWatcher::watch_file` can be used with arbitrary paths.
</content>
</entry>
<entry>
<title>arti: Temporarily disable a flaky test.</title>
<updated>2024-08-22T17:25:09Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-22T17:25:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ececf6be2eaffc201666cd3413dc19c025be66de'/>
<id>urn:sha1:ececf6be2eaffc201666cd3413dc19c025be66de</id>
<content type='text'>
Disabling until #1549 is fixed to unblock CI.
</content>
</entry>
<entry>
<title>arti: Use a postage::watch channel in the tests.</title>
<updated>2024-08-22T11:56:39Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-22T11:56:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=10b9575f8a9f7d5d102e9c69a5542ef4c3ff8d9b'/>
<id>urn:sha1:10b9575f8a9f7d5d102e9c69a5542ef4c3ff8d9b</id>
<content type='text'>
The watch channel should help prevent flakiness in the tests
(`TestModule` uses `maybe_send` to only send the received config if it's
different from the previously received value. This is supposed to
prevent the tests from failing when duplicate update events are
received).
</content>
</entry>
<entry>
<title>arti: Add test for config reloading.</title>
<updated>2024-08-21T19:00:41Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-20T15:29:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f6e981b824145e9864831338dc6b1bf213f45c59'/>
<id>urn:sha1:f6e981b824145e9864831338dc6b1bf213f45c59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti: Wrap long lines not handled by rustfmt.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-21T10:33:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=de0aed472606923906032026cd3c80ea17b5f2a5'/>
<id>urn:sha1:de0aed472606923906032026cd3c80ea17b5f2a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Support watching dirs for files with a given extension.</title>
<updated>2024-08-21T18:54:53Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-19T09:43:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bd00aa70cbe21566e9f5f988d4c70acc3adaff36'/>
<id>urn:sha1:bd00aa70cbe21566e9f5f988d4c70acc3adaff36</id>
<content type='text'>
This also fixes a couple of issues with the previous implementation:
  * it enables you to watch for more than just one file/extension per
    directory (each directory now has a list of filters. If any of the
    filters apply to the path contained in the notify::Event, the
    `FilterWatcher` notifies the listeners
  * it removes the list watched files from `FileWatcher`. This makes
    things a lot simpler to grok: essentially, the file watcher only
    ever watches directories, notifying if an "interesting" file was
    changed (in our case, the interesting files are files that have a
    relevant extension, such as `.auth`, or specific configuration
    files, as specified by `ConfigurationSources`).
</content>
</entry>
<entry>
<title>tor-config: Make FileWatcher use an opaque channel type.</title>
<updated>2024-08-21T18:33:34Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-15T17:25:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1edd4392191742ac3be279775a8c3d6710f62b8a'/>
<id>urn:sha1:1edd4392191742ac3be279775a8c3d6710f62b8a</id>
<content type='text'>
The `FileWatcher` now uses a `postage::watch` channel under the hood.
</content>
</entry>
<entry>
<title>tor-config: Give FileWatcherBuilder a handle to the runtime.</title>
<updated>2024-08-21T18:33:34Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-15T15:27:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=de6f4d5f83b37939f606b0a60486896be8b5316e'/>
<id>urn:sha1:de6f4d5f83b37939f606b0a60486896be8b5316e</id>
<content type='text'>
The event handler will soon be made async, so we need a handle to the
runtime.
</content>
</entry>
<entry>
<title>tor-config: Move FileWatcher to tor-config.</title>
<updated>2024-08-21T18:33:34Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-12T17:34:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6227e51080852621f8160009a8b65023cc89e367'/>
<id>urn:sha1:6227e51080852621f8160009a8b65023cc89e367</id>
<content type='text'>
For the most part, this is just code motion.

The only change here is that `prepare` is no longer a method on
`FileWatcher`. This decouples `FileWatcher` from `ConfigurationSources`,
enabling us to use it to watch files and directories that aren't
configuration.
</content>
</entry>
<entry>
<title>arti: Update outdated FileWatcher docs.</title>
<updated>2024-08-21T18:33:34Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-13T09:32:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ddb0659235ab4443420352470a83e6effbf21c2b'/>
<id>urn:sha1:ddb0659235ab4443420352470a83e6effbf21c2b</id>
<content type='text'>
The `FileWatcher` doesn't contain the channel for receiving events
anymore, and `FileWatcher::event_matched` was removed at some point.
</content>
</entry>
</feed>
