<commit_before>package main

import ()

func BeARemote(config MinionConfig) {
}

// vim: foldmethod=marker<commit_msg>add rpc hookup<commit_after>package main

import (
	"fmt"
	"log"

	"pault.ag/go/service"
)

func BeARemote(config MinionConfig) {
	node := MinionNode{}
	log.Printf("Bringing remote online\n")
	node.Register()
	log.Printf("Diling coordinator\n")
	conn, err := service.DialFromKeys(
		fmt.Sprintf("%s:%d", config.Host, config.Port),
		config.Cert, config.Key, config.CaCert,
	)
	if err != nil {
		log.Fatalf("Error! %s\n", err)
	}
	log.Printf("Bringing RPC online")
	client := service.Client(conn)
	log.Printf("%s\n", client)
}

// vim: foldmethod=marker
{'fraction_non_alphanumeric': 0.16417910447761194, 'fraction_numerical': 0.0, 'mean_word_length': 4.686440677966102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1611965', 'n_tokens_mistral': 264, 'n_tokens_neox': 260, 'n_words': 50}