mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
fix typo
This commit is contained in:
@@ -208,7 +208,7 @@ skynet_handle_init(int harbor) {
|
|||||||
struct handle_storage * s = malloc(sizeof(*H));
|
struct handle_storage * s = malloc(sizeof(*H));
|
||||||
s->slot_size = DEFAULT_SLOT_SIZE;
|
s->slot_size = DEFAULT_SLOT_SIZE;
|
||||||
s->slot = malloc(s->slot_size * sizeof(struct skynet_context *));
|
s->slot = malloc(s->slot_size * sizeof(struct skynet_context *));
|
||||||
memset(s->slot, 0, s->slot_size * sizeof(struct handle_slot *));
|
memset(s->slot, 0, s->slot_size * sizeof(struct skynet_context *));
|
||||||
|
|
||||||
rwlock_init(&s->lock);
|
rwlock_init(&s->lock);
|
||||||
// reserve 0 for system
|
// reserve 0 for system
|
||||||
|
|||||||
Reference in New Issue
Block a user