mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 03:31:41 +00:00
Allow multiple static peers in Pinecone iOS/Android demos
This commit is contained in:
parent
34451d21b8
commit
ba66b5a3b9
@ -126,8 +126,10 @@ func (m *DendriteMonolith) SetMulticastEnabled(enabled bool) {
|
|||||||
|
|
||||||
func (m *DendriteMonolith) SetStaticPeer(uri string) {
|
func (m *DendriteMonolith) SetStaticPeer(uri string) {
|
||||||
m.PineconeManager.RemovePeers()
|
m.PineconeManager.RemovePeers()
|
||||||
|
for _, uri := range strings.Split(uri, ",") {
|
||||||
m.PineconeManager.AddPeer(strings.TrimSpace(uri))
|
m.PineconeManager.AddPeer(strings.TrimSpace(uri))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (m *DendriteMonolith) DisconnectType(peertype int) {
|
func (m *DendriteMonolith) DisconnectType(peertype int) {
|
||||||
for _, p := range m.PineconeRouter.Peers() {
|
for _, p := range m.PineconeRouter.Peers() {
|
||||||
|
Loading…
Reference in New Issue
Block a user