Skip to content

Commit a1a9e07

Browse files
committed
WIP
1 parent a8b7c8c commit a1a9e07

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

x/mongo/driver/auth/auth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ func (ah *authHandshaker) GetHandshakeInformation(
103103
AppName(ah.options.AppName).
104104
Compressors(ah.options.Compressors).
105105
SASLSupportedMechs(ah.options.DBUser).
106-
ClusterClock(ah.options.ClusterClock).
107106
ServerAPI(ah.options.ServerAPI).
108107
LoadBalanced(ah.options.LoadBalanced).
109108
OuterLibraryName(ah.options.OuterLibraryName).

x/mongo/driver/operation/hello.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
8573
func (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

631618
func (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",

x/mongo/driver/topology/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,6 @@ func (s *Server) setupHeartbeatConnection(ctx context.Context) error {
842842
func (s *Server) createBaseOperation(conn *mnet.Connection) *operation.Hello {
843843
return operation.
844844
NewHello().
845-
ClusterClock(s.cfg.clock).
846845
Deployment(driver.SingleConnectionDeployment{C: conn}).
847846
ServerAPI(s.cfg.serverAPI)
848847
}

x/mongo/driver/topology/topology_options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ func NewConfigFromOptionsWithAuthenticator(opts *options.ClientOptions, clock *s
290290
return operation.NewHello().
291291
AppName(appName).
292292
Compressors(comps).
293-
ClusterClock(clock).
294293
ServerAPI(serverAPI).
295294
LoadBalanced(loadBalanced).
296295
OuterLibraryName(outerLibraryName).

0 commit comments

Comments
 (0)