sebastian-j-ibanez / fsync

fsync is a CLI tool to sync folders P2P.
MIT License
0 stars 0 forks source link

Reuse gob encoder/decoders #6

Closed sebastian-j-ibanez closed 1 month ago

sebastian-j-ibanez commented 1 month ago

The gob encoder/decoders should be reused.

They should only be 1 encoder/decoder per stream (aka 1 per client).

Socket handler should be re-written so that it has a gob encoder and decoder field.

Hopefully this resolves issue #7

sebastian-j-ibanez commented 1 month ago

Refactor completed in commit 1131500235bb7da80b0e2fbc855ededf33c2c777