()
| 105 | } |
| 106 | |
| 107 | func (spool *SessionPool) getTableSession() (ITableSession, error) { |
| 108 | tableSession := PooledTableSession{} |
| 109 | session, err := spool.GetSession() |
| 110 | if err != nil { |
| 111 | return nil, err |
| 112 | } |
| 113 | tableSession.session = session |
| 114 | tableSession.sessionPool = spool |
| 115 | return &tableSession, nil |
| 116 | } |
| 117 | |
| 118 | func (spool *SessionPool) ConstructSession(config *PoolConfig) (session Session, err error) { |
| 119 | if len(config.NodeUrls) > 0 { |