map_request_rate_limiter_impl.go ×1

Frontier kind: Code frontier

unlabeled · c_08cbe6f02560

7 tests · 45 LOC · 2 files · introduces 0 tests · 3 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range3 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
10 ranges45 lines · 2 files · Browse complete extent
All tests (intent)
7 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationworkflow_handler.go ×11 · 117 introduced LOCworkflow_handler.go ×11common.go ×1 · 11 introduced LOCcommon.go ×1request_response.pb.go ×6 · 246 introduced LOCrequest_response.pb.go ×…TestNewServer · 0 introduced LOCTestNewServerpri_matcher.go ×1 · 2 introduced LOCpri_matcher.go ×1TestNewServer · 0 introduced LOCTestNewServermetric_client.go ×3 · 18 introduced LOCmetric_client.go ×3logger.go ×1 · 2 introduced LOClogger.go ×1TestConcurrentAccessAndCleanup · 0 introduced LOCTestConcurrentAccessAndC…TestGetOrCreateRateLimiter · 0 introduced LOCTestGetOrCreateRateLimit…map_request_rate_limiter_impl.go ×1 · 3 introduced LOCmap_request_rate_limiter…map_request_rate_limiter_impl.go ×6 · 27 introduced LOCmap_request_rate_limiter…map_request_rate_limiter_impl.go ×1 · 9 introduced LOCmap_request_rate_limiter…noop_request_rate_limiter_impl.go ×1 · 3 introduced LOCnoop_request_rate_limite…TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/historyservice/v1/request_response.pb.go · 12003 LOCv1/request_response.pb.g…go.temporal.io/server/api/historyservice/v1/service_grpc.pb.go · 3373 LOCv1/service_grpc.pb.gogo.temporal.io/server/api/matchingservice/v1/request_response.pb.go · 6878 LOCv1/request_response.pb.g…go.temporal.io/server/api/matchingservice/v1/service_grpc.pb.go · 1911 LOCv1/service_grpc.pb.gogo.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/client/history/client.go · 313 LOChistory/client.gogo.temporal.io/server/client/history/client_gen.go · 1548 LOChistory/client_gen.gogo.temporal.io/server/client/history/metric_client.go · 119 LOChistory/metric_client.gogo.temporal.io/server/client/history/metric_client_gen.go · 1046 LOChistory/metric_client_ge…go.temporal.io/server/client/history/retryable_client_gen.go · 1152 LOChistory/retryable_client…go.temporal.io/server/client/matching/client.go · 535 LOCmatching/client.gogo.temporal.io/server/client/matching/client_gen.go · 702 LOCmatching/client_gen.gogo.temporal.io/server/client/matching/metric_client.go · 263 LOCmatching/metric_client.g…go.temporal.io/server/client/matching/metric_client_gen.go · 500 LOCmatching/metric_client_g…go.temporal.io/server/client/matching/retryable_client_gen.go · 642 LOCmatching/retryable_clien…go.temporal.io/server/common/persistence/sql/common.go · 137 LOCsql/common.gogo.temporal.io/server/common/quotas/map_request_rate_limiter_impl.go · 163 LOCquotas/map_request_rate_…go.temporal.io/server/common/quotas/noop_request_rate_limiter_impl.go · 34 LOCquotas/noop_request_rate…go.temporal.io/server/common/rpc/interceptor/routing_key_extractor_gen.go · 162 LOCinterceptor/routing_key_…go.temporal.io/server/common/rpc/interceptor/telemetry.go · 412 LOCinterceptor/telemetry.gogo.temporal.io/server/service/frontend/workflow_handler.go · 7521 LOCfrontend/workflow_handle…go.temporal.io/server/service/history/handler.go · 2627 LOChistory/handler.gogo.temporal.io/server/service/history/queues/executable.go · 979 LOCqueues/executable.gogo.temporal.io/server/service/history/queues/queue_scheduled.go · 301 LOCqueues/queue_scheduled.g…go.temporal.io/server/service/history/queues/scheduler.go · 324 LOCqueues/scheduler.gogo.temporal.io/server/service/history/transfer_queue_task_executor_base.go · 307 LOChistory/transfer_queue_t…go.temporal.io/server/service/history/worker_versioning_util.go · 237 LOChistory/worker_versionin…go.temporal.io/server/service/matching/db.go · 995 LOCmatching/db.gogo.temporal.io/server/service/matching/handler.go · 726 LOCmatching/handler.gogo.temporal.io/server/service/matching/matching_engine.go · 3939 LOCmatching/matching_engine…go.temporal.io/server/service/matching/pri_forwarder.go · 305 LOCmatching/pri_forwarder.g…go.temporal.io/server/service/matching/pri_matcher.go · 702 LOCmatching/pri_matcher.gogo.temporal.io/server/temporaltest/logger.go · 41 LOCtemporaltest/logger.gogo.temporal.io/server/temporaltest/options.go · 52 LOCtemporaltest/options.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestConcurrentAccessAndCleanup · introduced test · go.temporal.io/server/common/quotas/TestMapRequestRateLimiterSuite/TestConcurrentAccessAndCleanupTestConcurrentAccessAndC…TestGetOrCreateRateLimiter · introduced test · go.temporal.io/server/common/quotas/TestMapRequestRateLimiterSuite/TestGetOrCreateRateLimiterTestGetOrCreateRateLimit…TestNewServer · introduced test · go.temporal.io/server/temporal/TestNewServerTestNewServerTestNewServerWithJSONEncoding · introduced test · go.temporal.io/server/temporal/TestNewServerWithJSONEncodingTestNewServerWithJSONEnc…ExampleNewServer · introduced test · go.temporal.io/server/temporaltest/ExampleNewServerExampleNewServerTestDefaultWorkerOptions · introduced test · go.temporal.io/server/temporaltest/TestDefaultWorkerOptionsTestDefaultWorkerOptionsTestNewServer · introduced test · go.temporal.io/server/temporaltest/TestNewServerTestNewServerTestNewWorkerWithOptions · introduced test · go.temporal.io/server/temporaltest/TestNewWorkerWithOptionsTestNewWorkerWithOptionsFocused concept · map_request_rate_limiter_impl.go ×1 · 3 introduced LOCmap_request_rate_limiter…

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 3 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/quotas/map_request_rate_limiter_impl.go 3 introduced LOC · 1 range

Open complete file

114
115 if entry, ok := r.rateLimiters[key]; ok {
116 > entry.lastAccess.Store(nowNano) map_request_rate_limiter_impl.go
117 > return entry.rateLimiter
118 > }
119
120 entry = &rateLimiterEntry{rateLimiter: newRateLimiter}