Skip to content

Commit

Permalink
Swift Ice/interceptor minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Oct 10, 2019
1 parent c8329b6 commit 2e94e2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swift/Ice/interceptor/Sources/Client/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import Foundation
import Ice

// Automatically flush stdout
setbuf(__stdoutp, nil)

func menu() {
print(
"""
Expand Down Expand Up @@ -92,7 +95,7 @@ func run() -> Int32 {
// Request an access token from the server's authentication object.
//
let token = try authenticator.getToken()
print("Successfully retrieved access token: \(token)")
print("Successfully retrieved access token: \"\(token)\"")
//
// Add the access token to the communicator's context, so it will be
// sent along with every request made through it.
Expand Down
3 changes: 3 additions & 0 deletions swift/Ice/interceptor/Sources/Server/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import Foundation
import Ice

// Automatically flush stdout
setbuf(__stdoutp, nil)

func run() -> Int32 {
do {
var args = CommandLine.arguments
Expand Down

0 comments on commit 2e94e2d

Please sign in to comment.