Revision 507372bb tests/peer/init.c

View differences:

tests/peer/init.c
56 56
Peer *peer_init(const char *configfile) {
57 57
	peer = calloc(sizeof(Peer),1);
58 58

  
59
	grapesInit(event_base_new());
59
	napaInit(event_base_new());
60 60

  
61 61
	cfg_t *main_config = cfg_init(cfg_main, CFGF_NONE);
62 62
	if(cfg_parse(main_config, configfile) == CFG_PARSE_ERROR)
......
103 103
		recv_localsocketID_cb, eventbase);
104 104

  
105 105
	while (!messaging_ready) {
106
		grapesYield();
106
		napaYield();
107 107
        }
108 108
	info("ML has been initialized, local addess is %s", LocalPeerID);
109 109
}

Also available in: Unified diff