mirror of
https://github.com/LBRYFoundation/herald.go.git
synced 2025-08-23 09:37:27 +00:00
* Cleanup shutdown and peers subscribe this has errors currently, need to figure out data race * fixed data race finally.... * getclaimbyid and search * hook jsonrpc peers subcribe into current federation * cleanup some peers stuff * remove commented code * tie into session manager in jsonrpc peers subscribe * use int for port args * cleanup and fix a bunch of compiler warnings * use logrus everywhere * cleanup test
19 lines
515 B
Go
19 lines
515 B
Go
package server
|
|
|
|
import (
|
|
"github.com/lbryio/herald.go/db"
|
|
"github.com/lbryio/lbcd/chaincfg"
|
|
"github.com/lbryio/lbry.go/v3/extras/stop"
|
|
)
|
|
|
|
func (s *Server) AddPeerExported() func(*Peer, bool, bool) error {
|
|
return s.addPeer
|
|
}
|
|
|
|
func (s *Server) GetNumPeersExported() func() int64 {
|
|
return s.getNumPeers
|
|
}
|
|
|
|
func NewSessionManagerExported(server *Server, db *db.ReadOnlyDBColumnFamily, args *Args, grp *stop.Group, chain *chaincfg.Params) *sessionManager {
|
|
return newSessionManager(server, db, args, grp, chain)
|
|
}
|