OSDN Git Service

checked
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 17 Jun 2019 02:43:25 +0000 (10:43 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 17 Jun 2019 02:43:25 +0000 (10:43 +0800)
federation/federation.go

index b0775a5..d46cd03 100644 (file)
@@ -6,17 +6,19 @@ import (
        "github.com/vapor/federation/config"
 )
 
+func ParseFedProg(warders []config.Warder) []byte {
+       SortWarders(warders)
+
+       // TODO:
+       return []byte{}
+}
+
 type ByPosition []config.Warder
 
 func (w ByPosition) Len() int           { return len(w) }
 func (w ByPosition) Swap(i, j int)      { w[i], w[j] = w[j], w[i] }
 func (w ByPosition) Less(i, j int) bool { return w[i].Position < w[j].Position }
 
-func ParseFedProg(warders []config.Warder) []byte {
-       SortWarders(warders)
-       return []byte{}
-}
-
 func SortWarders(warders []config.Warder) []config.Warder {
        sort.Sort(ByPosition(warders))
        return warders