blob: 02a5b5760dbeb6fca663344fe59ba37b4c49fcc2 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fuchsia_async as fasync;
use sampler::config::SamplerConfig;
/// Parses every config file in the production config directory
/// to make sure there are no malformed configurations being submitted.
async fn validate_lapis_configs() {
let config_directory = "/pkg/config/metrics";
match SamplerConfig::from_directory(60, &config_directory) {
Ok(config) => {
Err(e) => {
panic!("{:?}", e);