Skip to content

Commit bd24144

Browse files
committed
added comment
1 parent 9285ece commit bd24144

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* Removed check the node is available for query and table service sessions
22
* Refactored the `balancers.PreferLocations()` function - it is a clean/pure function
3-
* Added `balancers.WithNodeID()` context modifier for define per request the YDB endpoint by NodeID
3+
* Added experimental `balancers.WithNodeID()` context modifier for define per request the YDB endpoint by NodeID
44

55
## v3.74.2
66
* Added description to scan errors with use query service client scanner

balancers/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
"github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
77
)
88

9+
// WithNodeID returns the copy of context with NodeID which the client balancer will prefer on step of choose YDB endpoint step
10+
//
11+
// Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
912
func WithNodeID(ctx context.Context, nodeID uint32) context.Context {
1013
return endpoint.WithNodeID(ctx, nodeID)
1114
}

0 commit comments

Comments
 (0)