Skip to content

FoundationDB incorrect datacenter key #89

@ppaquette

Description

@ppaquette

Minor typo.

The webadmin defines the datacenter property as ".ids.data-center"

.typ(Type::Input)
.input_check([Transformer::Trim], [Validator::IsId])
.new_field("ids.data-center")
.label("Data Center Id")
.help("Data center ID (optional)")
.placeholder("my-datacenter-id")
.build()

The main code and documentation refers to the property as ".ids.datacenter"

        if let Some(value) = config.property((&prefix, "ids.datacenter")) {
            db.set_option(DatabaseOption::DatacenterId(value))
                .map_err(|err| {
                    config.new_build_error(
                        (&prefix, "ids.datacenter"),
                        format!("Failed to set option: {err:?}"),
                    )
                })
                .ok()?;
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions