@@ -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
@@ -611,7 +599,6 @@ func (h *Hello) Execute(ctx context.Context) error {
611599 return errors .New ("a Hello must have a Deployment set before Execute can be called" )
612600 }
613601
614- fmt .Println ("Executing Hello operation..." )
615602 return h .createOperation ().Execute (ctx )
616603}
617604
@@ -630,7 +617,6 @@ func isLegacyHandshake(srvAPI *driver.ServerAPIOptions, loadbalanced bool) bool
630617
631618func (h * Hello ) createOperation () driver.Operation {
632619 op := driver.Operation {
633- // Clock: h.clock,
634620 CommandFn : h .command ,
635621 Database : "admin" ,
636622 Deployment : h .d ,
@@ -663,7 +649,6 @@ func (h *Hello) GetHandshakeInformation(ctx context.Context, _ address.Address,
663649 deployment := driver.SingleConnectionDeployment {C : conn }
664650
665651 op := driver.Operation {
666- // Clock: h.clock,
667652 CommandFn : h .handshakeCommand ,
668653 Deployment : deployment ,
669654 Database : "admin" ,
0 commit comments