MCPcopy Create free account
hub / github.com/NextDotID/proof_server / init

Function init

cmd/lambda_worker/main.go:255–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

253}
254
255func init() {
256 cfg, err := config.LoadDefaultConfig(
257 context.Background(),
258 config.WithRegion("ap-east-1"),
259 )
260 if err != nil {
261 logrus.Fatalf("Unable to load AWS config: %s", err)
262 }
263 common.CurrentRuntime = common.Runtimes.Lambda
264 init_config_from_aws_secret()
265 logrus.SetLevel(logrus.WarnLevel)
266
267 init_db(cfg)
268 // init_sqs(cfg)
269 init_validators()
270}
271
272func init_config_from_aws_secret() {
273 if initialized {

Callers

nothing calls this directly

Calls 3

init_dbFunction · 0.70
init_validatorsFunction · 0.70

Tested by

no test coverage detected