Skip to content

Commit

Permalink
prosody: use default network, remove libevent, config deprecated
Browse files Browse the repository at this point in the history
`use_libevent` config option has been deprecated as there are 3
networking back-ends (see: https://prosody.im/doc/network_backend). It
is probably unwise to stray from the defaults (epoll).

Review instructed to flat-out remove it versus previously making it opt-in.
  • Loading branch information
toastal committed Oct 15, 2023
1 parent 67b3f56 commit ccb0f87
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions nixos/modules/services/networking/prosody.nix
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,6 @@ in
admins = ${toLua cfg.admins}
-- we already build with libevent, so we can just enable it for a more performant server
use_libevent = true
modules_enabled = {
${ lib.concatStringsSep "\n " (lib.mapAttrsToList
Expand Down
2 changes: 0 additions & 2 deletions pkgs/servers/xmpp/prosody/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, icu
, lua
, nixosTests
, withLibevent ? true
, withDBI ? true
# use withExtraLibs to add additional dependencies of community modules
, withExtraLibs ? [ ]
Expand All @@ -16,7 +15,6 @@ let
luaEnv = lua.withPackages(p: with p; [
luasocket luasec luaexpat luafilesystem luabitop luadbi-sqlite3 luaunbound
]
++ lib.optional withLibevent p.luaevent
++ lib.optional withDBI p.luadbi
++ withExtraLuaPackages p
);
Expand Down

0 comments on commit ccb0f87

Please sign in to comment.