Réception d'un fichier et sauvegarde de celui-ci terminée
This commit is contained in:
@@ -2,14 +2,14 @@ package managers
|
||||
|
||||
import (
|
||||
"StoreBackEnd/pkg/protocol/repository"
|
||||
"net"
|
||||
"bufio"
|
||||
)
|
||||
|
||||
type RequestManager struct {
|
||||
Repository *repository.ProtocolRepository
|
||||
}
|
||||
|
||||
func (receiver RequestManager) Execute(request string, reader net.Conn) string {
|
||||
func (receiver RequestManager) Execute(request string, reader *bufio.Reader) string {
|
||||
// On lis ce que l'on reçoit
|
||||
result, executed, readCb := receiver.Repository.ExecuteReader(request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user