github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/cluster/cluster_config_context.go (about) 1 // Copyright (C) 2017 - 2022 Asynkron.se <http://www.asynkron.se> 2 3 package cluster 4 5 import ( 6 "time" 7 8 "github.com/asynkron/protoactor-go/actor" 9 ) 10 11 const ( 12 defaultActorRequestTimeout = 5 * time.Second 13 defaultRequestsLogThrottlePeriod = 2 * time.Second 14 defaultMaxNumberOfEvetsInRequestLogThrottledPeriod int = 3 15 ) 16 17 // ClusterContextConfig is used to configure cluster context parameters 18 type ClusterContextConfig struct { 19 RequestsLogThrottlePeriod time.Duration 20 MaxNumberOfEventsInRequestLogThrottledPeriod int 21 requestLogThrottle actor.ShouldThrottle 22 }