create goroutine for setting a post