Skip to content

Commit fdc8625

Browse files
committed
export wrappedSession as WrappedSession
1 parent 187821f commit fdc8625

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

wrapped_session.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ import (
2222
"github.com/mongodb/mongo-go-driver/mongo/transactionopt"
2323
)
2424

25-
type wrappedSession struct {
25+
type WrappedSession struct {
2626
ss mongo.Session
2727
}
2828

29-
func (ws *wrappedSession) EndSession(ctx context.Context) {
29+
func (ws *WrappedSession) EndSession(ctx context.Context) {
3030
ctx, span := roundtripTrackingSpan(ctx, "github.com/mongodb/mongo-go-driver.Session.EndSession")
3131
defer span.end(ctx)
3232

3333
ws.ss.EndSession(ctx)
3434
}
3535

36-
func (ws *wrappedSession) StartTransaction(topts ...transactionopt.Transaction) error {
36+
func (ws *WrappedSession) StartTransaction(topts ...transactionopt.Transaction) error {
3737
return ws.ss.StartTransaction(topts...)
3838
}
3939

40-
func (ws *wrappedSession) AbortTransaction(ctx context.Context) error {
40+
func (ws *WrappedSession) AbortTransaction(ctx context.Context) error {
4141
ctx, span := roundtripTrackingSpan(ctx, "github.com/mongodb/mongo-go-driver.Session.AbortTransaction")
4242
defer span.end(ctx)
4343

@@ -48,7 +48,7 @@ func (ws *wrappedSession) AbortTransaction(ctx context.Context) error {
4848
return err
4949
}
5050

51-
func (ws *wrappedSession) CommitTransaction(ctx context.Context) error {
51+
func (ws *WrappedSession) CommitTransaction(ctx context.Context) error {
5252
ctx, span := roundtripTrackingSpan(ctx, "github.com/mongodb/mongo-go-driver.Session.CommitTransaction")
5353
defer span.end(ctx)
5454

@@ -59,6 +59,6 @@ func (ws *wrappedSession) CommitTransaction(ctx context.Context) error {
5959
return err
6060
}
6161

62-
func (ws *wrappedSession) ClusterTime() *bson.Document {
62+
func (ws *WrappedSession) ClusterTime() *bson.Document {
6363
return ws.ss.ClusterTime()
6464
}

0 commit comments

Comments
 (0)