package app

import (
	"hyapp/services/activity-service/internal/config"
	luckygiftservice "hyapp/services/activity-service/internal/service/luckygift"
)

func luckyGiftWorkerOptions(nodeID string, cfg config.LuckyGiftWorkerConfig) luckygiftservice.WorkerOptions {
	return luckygiftservice.WorkerOptions{
		WorkerID:       nodeID + "-lucky-gift",
		PollInterval:   cfg.WorkerPollInterval,
		BatchSize:      cfg.WorkerBatchSize,
		Concurrency:    cfg.WorkerConcurrency,
		LockTTL:        cfg.WorkerLockTTL,
		MaxRetry:       cfg.WorkerMaxRetry,
		PublishTimeout: cfg.PublishTimeout,
		StatsInterval:  cfg.StatsRefreshInterval,
		StatsBatchSize: cfg.StatsBatchSize,
	}
}
