Merge #190: services: use 'port' option type

db48ab9b69 services: use 'port' option type (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK db48ab9b69

Tree-SHA512: 24cf0c307b40652d1275575fdf4216696890b0f7786832e7bbee9e21cf6d23d3fc35480926c475fc98c17eba668f5ee2c8c0875689e725c8ad05f2fb6b9ecd20
This commit is contained in:
Jonas Nick 2020-06-05 20:40:41 +00:00
commit 16e602e2b5
No known key found for this signature in database
GPG key ID: 4861DBF262123605
6 changed files with 10 additions and 10 deletions

View file

@ -94,7 +94,7 @@ in {
rpc = {
port = mkOption {
type = types.nullOr types.ints.u16;
type = types.nullOr types.port;
default = null;
description = "Override the default port on which to listen for JSON-RPC connections.";
};
@ -128,7 +128,7 @@ in {
description = "Whether to use the test chain.";
};
port = mkOption {
type = types.nullOr types.ints.u16;
type = types.nullOr types.port;
default = null;
description = "Override the default port on which to listen for connections.";
};