func main() { log.SetPrefix(common.ProductName + " ") log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds) log.Println(os.Args) s, err := newServer() goshawk.CheckFatal(err) s.start() }
// paxos.Connection interface to allow sending to ourself. func (cm *ConnectionManager) Send(b []byte) { seg, _, err := capn.ReadFromMemoryZeroCopy(b) server.CheckFatal(err) msg := msgs.ReadRootMessage(seg) cm.DispatchMessage(cm.RMId, msg.Which(), &msg) }