Skip to content

Commit

Permalink
refactore
Browse files Browse the repository at this point in the history
  • Loading branch information
erangaeb committed Feb 20, 2018
1 parent 2af542c commit f3be90e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/senz.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,13 @@ func main() {
}

func reading(senzie *Senzie) {
//reader := bufio.NewReader(senzie.conn)
scanner := bufio.NewScanner(senzie.conn)
scanner.Split(scanSemiColon)

// read senz
READER:
for scanner.Scan() {
//msg, err := reader.ReadString(';')
msg := scanner.Text()
//if err != nil {
// fmt.Println("Error reading: ", err.Error())

// quit all routeins of this senzie
// senzie.quit <- true
// break READER
//}

println(msg)

Expand Down
11 changes: 11 additions & 0 deletions src/z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "<transaction UUID>",
"timestamp": "<transaction timestamp>",
"creator": "<transaction creator>",
"signature": "<digital signature of creator>",
"client_id": "<client id who involved with print job>",
"design_provider_id": "<design provider id who involved with print jbo>",
"print_agent_id": "<print agent id who involved with print jbo>",
"print_job_id": "<pring job id>",
"print_job_action": "<print job action>"
}

0 comments on commit f3be90e

Please sign in to comment.