From 092159313a6a9db63cab5ead5e792e848fec3827 Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Tue, 27 Oct 2026 01:22:26 +0800 Subject: [PATCH] limit 100 --- app/geodata/geodata.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/geodata/geodata.go b/app/geodata/geodata.go index 334020615..c69ba3c61 100644 --- a/app/geodata/geodata.go +++ b/app/geodata/geodata.go @@ -28,6 +28,9 @@ func New(ctx context.Context, config *Config) (*Instance, error) { if config.Cron == "" { return &Instance{}, nil } + if len(config.Assets) > 100 { + return nil, errors.New("geodata supports at most 100 assets") + } for _, asset := range config.Assets { if !strings.EqualFold(filepath.Ext(asset.GetFile()), ".dat") { return nil, errors.New("geodata asset file extension must be .dat")