示例#1
0
func (t *addObjectsHandlerType) AddObjects(conn *srpc.Conn) error {
	objSrv := &objectServer{t.objectsDir}
	return lib.AddObjects(conn, objSrv, t.logger)
}
示例#2
0
func (t *srpcType) AddObjects(conn *srpc.Conn) error {
	defer runtime.GC() // An opportune time to take out the garbage.
	return lib.AddObjects(conn, t.objectServer, t.logger)
}