Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newPeerRestClients (0.08 sec)

  1. cmd/peer-rest-client.go

    				time.Sleep(5 * time.Second)
    			}
    		}
    	}()
    }
    
    // newPeerRestClients creates new peer clients.
    // The two slices will point to the same clients,
    // but 'all' will contain nil entry for local client.
    // The 'all' slice will be in the same order across the cluster.
    func newPeerRestClients(endpoints EndpointServerPools) (remote, all []*peerRESTClient) {
    	if !globalIsDistErasure {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/notification.go

    			nodesOffline++
    		}
    	}
    	return
    }
    
    // NewNotificationSys - creates new notification system object.
    func NewNotificationSys(endpoints EndpointServerPools) *NotificationSys {
    	remote, all := newPeerRestClients(endpoints)
    	return &NotificationSys{
    		peerClients:    remote,
    		allPeerClients: all,
    	}
    }
    
    // GetBandwidthReports - gets the bandwidth report from all nodes including self.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top