@@ -26,7 +26,6 @@ import (
2626 "go.mongodb.org/mongo-driver/v2/x/mongo/driver"
2727 "go.mongodb.org/mongo-driver/v2/x/mongo/driver/description"
2828 "go.mongodb.org/mongo-driver/v2/x/mongo/driver/mnet"
29- "go.mongodb.org/mongo-driver/v2/x/mongo/driver/session"
3029)
3130
3231// maxClientMetadataSize is the maximum size of the client metadata document
@@ -44,7 +43,6 @@ type Hello struct {
4443 compressors []string
4544 saslSupportedMechs string
4645 d driver.Deployment
47- clock * session.ClusterClock
4846 speculativeAuth bsoncore.Document
4947 topologyVersion * description.TopologyVersion
5048 maxAwaitTimeMS * int64
@@ -71,16 +69,6 @@ func (h *Hello) AppName(appname string) *Hello {
7169 return h
7270}
7371
74- // ClusterClock sets the cluster clock for this operation.
75- func (h * Hello ) ClusterClock (clock * session.ClusterClock ) * Hello {
76- if h == nil {
77- h = new (Hello )
78- }
79-
80- h .clock = clock
81- return h
82- }
83-
8472// Compressors sets the compressors that can be used.
8573func (h * Hello ) Compressors (compressors []string ) * Hello {
8674 h .compressors = compressors
@@ -629,7 +617,6 @@ func isLegacyHandshake(srvAPI *driver.ServerAPIOptions, loadbalanced bool) bool
629617
630618func (h * Hello ) createOperation () driver.Operation {
631619 op := driver.Operation {
632- Clock : h .clock ,
633620 CommandFn : h .command ,
634621 Database : "admin" ,
635622 Deployment : h .d ,
@@ -662,7 +649,6 @@ func (h *Hello) GetHandshakeInformation(ctx context.Context, _ address.Address,
662649 deployment := driver.SingleConnectionDeployment {C : conn }
663650
664651 op := driver.Operation {
665- Clock : h .clock ,
666652 CommandFn : h .handshakeCommand ,
667653 Deployment : deployment ,
668654 Database : "admin" ,
0 commit comments