]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: remove map() command
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 3 Jan 2020 14:54:59 +0000 (15:54 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 15 Jan 2020 09:38:15 +0000 (10:38 +0100)
map() does not work with systemd integration anyway.

daemon/bindings/event.rst

index be6cd3dc766fb356a519965488a06551ad2e6ee3..e33002dbf512485f48843f5dcde2c19ac83c1653 100644 (file)
@@ -1,4 +1,3 @@
-
 Timers and events
 ^^^^^^^^^^^^^^^^^
 
@@ -122,38 +121,3 @@ For example, when you want to add a new policy, you'd need to add it to either p
 
       worker.sleep(1)
 
-.. function:: map(expr)
-
-   Run expression synchronously over all forks, results are returned as a table ordered as forks. Expression can be any valid expression in Lua.
-
-
-   Example:
-
-   .. code-block:: lua
-
-      -- Current instance only
-      hostname()
-      localhost
-      -- Mapped to forks
-      map 'hostname()'
-      [1] => localhost
-      [2] => localhost
-      -- Get worker ID from each fork
-      map 'worker.id'
-      [1] => 0
-      [2] => 1
-      -- Get cache stats from each fork
-      map 'cache.stats()'
-      [1] => {
-          [hit] => 0
-          [delete] => 0
-          [miss] => 0
-          [insert] => 0
-      }
-      [2] => {
-          [hit] => 0
-          [delete] => 0
-          [miss] => 0
-          [insert] => 0
-      }
-