@@ -848,10 +848,10 @@ func (db *Database) Run(cmd interface{}, result interface{}) error {
848
848
return db .run (socket , cmd , result )
849
849
}
850
850
851
- // RunOnSocket does the same as Run, but guarantees that your command will be run
851
+ // runOnSocket does the same as Run, but guarantees that your command will be run
852
852
// on the provided socket instance; if it's unhealthy, you will receive the error
853
853
// from it.
854
- func (db * Database ) RunOnSocket (socket * mongoSocket , cmd interface {}, result interface {}) error {
854
+ func (db * Database ) runOnSocket (socket * mongoSocket , cmd interface {}, result interface {}) error {
855
855
socket .Acquire ()
856
856
defer socket .Release ()
857
857
return db .run (socket , cmd , result )
@@ -2321,11 +2321,11 @@ func (s *Session) Run(cmd interface{}, result interface{}) error {
2321
2321
return s .DB ("admin" ).Run (cmd , result )
2322
2322
}
2323
2323
2324
- // RunOnSocket does the same as Run, but guarantees that your command will be run
2324
+ // runOnSocket does the same as Run, but guarantees that your command will be run
2325
2325
// on the provided socket instance; if it's unhealthy, you will receive the error
2326
2326
// from it.
2327
- func (s * Session ) RunOnSocket (socket * mongoSocket , cmd interface {}, result interface {}) error {
2328
- return s .DB ("admin" ).RunOnSocket (socket , cmd , result )
2327
+ func (s * Session ) runOnSocket (socket * mongoSocket , cmd interface {}, result interface {}) error {
2328
+ return s .DB ("admin" ).runOnSocket (socket , cmd , result )
2329
2329
}
2330
2330
2331
2331
// SelectServers restricts communication to servers configured with the
0 commit comments